From 3f020fac9d459da944a805ae572042d571c3418e Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 29 Oct 2024 19:27:52 +0200 Subject: [PATCH] whisper : minor compile warning --- src/whisper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/whisper.cpp b/src/whisper.cpp index 8238554..37214f0 100644 --- a/src/whisper.cpp +++ b/src/whisper.cpp @@ -6252,7 +6252,7 @@ int whisper_full_with_state( // FIXME: will timestamp offsets be correct? // [EXPERIMENTAL] Token-level timestamps with DTW { - const auto n_segments = state->result_all.size() - n_segments_before; + const int n_segments = state->result_all.size() - n_segments_before; if (ctx->params.dtw_token_timestamps && n_segments) { const int n_frames = std::min(std::min(WHISPER_CHUNK_SIZE * 100, seek_delta), seek_end - seek); whisper_exp_compute_token_level_timestamps_dtw(