Commit 610b7bb1 for whisper.cpp
commit 610b7bb1fb220007682c1bcd844e6b4a99dd7f9d
Author: astro <5521045+astrovm@users.noreply.github.com>
Date: Fri Nov 20 01:39:36 2026 -0300
fix: print the alignment mask size with %zu (#4167)
memory_size is a size_t. %ld is a long. On a 32-bit ABI those sizes differ.
diff --git a/src/whisper.cpp b/src/whisper.cpp
index 1aa1a9c8..0336bf77 100644
--- a/src/whisper.cpp
+++ b/src/whisper.cpp
@@ -3520,7 +3520,7 @@ struct whisper_state * whisper_init_state(whisper_context * ctx) {
return nullptr;
}
const size_t memory_size = aheads_masks_nbytes(state->aheads_masks);
- WHISPER_LOG_INFO("%s: alignment heads masks size = %ld B\n", __func__, memory_size);
+ WHISPER_LOG_INFO("%s: alignment heads masks size = %zu B\n", __func__, memory_size);
}
#ifdef WHISPER_USE_COREML