From e15b6e78054066b3c1f6b7c4a231044443325211 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sat, 4 Nov 2023 18:14:22 +0300 Subject: [PATCH] Fix "cannot be narrowed" in clang --- src/blockstore_flush.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockstore_flush.cpp b/src/blockstore_flush.cpp index 8e560808..66eb8ea6 100644 --- a/src/blockstore_flush.cpp +++ b/src/blockstore_flush.cpp @@ -1372,7 +1372,7 @@ bool journal_flusher_co::trim_journal(int wait_base) ? (uint32_t)JE_START_V1_SIZE : (uint32_t)JE_START_V2_SIZE), .reserved = 0, .journal_start = new_trim_pos, - .version = (!bs->dsk.data_csum_type && ((journal_entry_start*)flusher->journal_superblock)->version == JOURNAL_VERSION_V1 + .version = (uint64_t)(!bs->dsk.data_csum_type && ((journal_entry_start*)flusher->journal_superblock)->version == JOURNAL_VERSION_V1 ? JOURNAL_VERSION_V1 : JOURNAL_VERSION_V2), .data_csum_type = bs->dsk.data_csum_type, .csum_block_size = bs->dsk.csum_block_size,