Skip to content

Commit

Permalink
compiling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pippocao committed Dec 3, 2024
1 parent 5fa4b80 commit 1e63424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bq_log/types/ring_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace bq {
ring_buffer_write_handle handle;
int32_t max_try_count = 100;

uint32_t size_required = size + data_block_offset;
uint32_t size_required = size + (uint32_t)data_block_offset;
uint32_t need_block_count = (size_required + (cache_line_size - 1)) >> cache_line_size_log2;
if (need_block_count > aligned_blocks_count_ || need_block_count == 0) {
#if BQ_RING_BUFFER_DEBUG
Expand Down

0 comments on commit 1e63424

Please sign in to comment.