From 912fa8944e599b4a8563567dc990841457af9cc9 Mon Sep 17 00:00:00 2001 From: Glen Chung Date: Thu, 11 Dec 2025 13:21:55 -0800 Subject: [PATCH] TASK-001: Fix C4267 type conversion warnings in VAD tests --- tests/test-vad-full.cpp | 2 +- tests/test-vad.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-vad-full.cpp b/tests/test-vad-full.cpp index 8295b06d..6a5812d5 100644 --- a/tests/test-vad-full.cpp +++ b/tests/test-vad-full.cpp @@ -37,7 +37,7 @@ int main() { wparams.vad_params.max_speech_duration_s = FLT_MAX; wparams.vad_params.speech_pad_ms = 30; - assert(whisper_full_parallel(wctx, wparams, pcmf32.data(), pcmf32.size(), 1) == 0); + assert(whisper_full_parallel(wctx, wparams, pcmf32.data(), static_cast(pcmf32.size()), 1) == 0); const int n_segments = whisper_full_n_segments(wctx); assert(n_segments == 1); diff --git a/tests/test-vad.cpp b/tests/test-vad.cpp index 0003ae3a..78e150b1 100644 --- a/tests/test-vad.cpp +++ b/tests/test-vad.cpp @@ -71,7 +71,7 @@ int main() { assert_default_params(params); // Test speech probabilites - test_detect_speech(vctx, params, pcmf32.data(), pcmf32.size()); + test_detect_speech(vctx, params, pcmf32.data(), static_cast(pcmf32.size())); // Test speech timestamps (uses speech probabilities from above) struct whisper_vad_segments * timestamps = test_detect_timestamps(vctx, params);