File tree 2 files changed +10
-8
lines changed 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -387,10 +387,11 @@ void fasterwhisper_engine::decode_speech(const whisper_buf_t& buf) {
387
387
388
388
auto stats = report_stats (
389
389
buf.size (), m_sample_rate,
390
- static_cast <size_t >(
391
- std::max (0L , std::chrono::duration_cast<std::chrono::milliseconds>(
392
- std::chrono::steady_clock::now () - decoding_start)
393
- .count ())));
390
+ static_cast <size_t >(std::max (
391
+ 0L , static_cast <long int >(
392
+ std::chrono::duration_cast<std::chrono::milliseconds>(
393
+ std::chrono::steady_clock::now () - decoding_start)
394
+ .count ()))));
394
395
395
396
auto result = merge_texts (m_intermediate_text.value_or (std::string{}),
396
397
std::move (text));
Original file line number Diff line number Diff line change @@ -661,10 +661,11 @@ void whisper_engine::decode_speech(const whisper_buf_t& buf) {
661
661
662
662
auto stats = report_stats (
663
663
buf.size (), m_sample_rate,
664
- static_cast <size_t >(
665
- std::max (0L , std::chrono::duration_cast<std::chrono::milliseconds>(
666
- std::chrono::steady_clock::now () - decoding_start)
667
- .count ())));
664
+ static_cast <size_t >(std::max (
665
+ 0L , static_cast <long int >(
666
+ std::chrono::duration_cast<std::chrono::milliseconds>(
667
+ std::chrono::steady_clock::now () - decoding_start)
668
+ .count ()))));
668
669
669
670
auto auto_lang_id = [&]() -> std::string {
670
671
if (!m_wparams.language ) { // auto-detected lang
You can’t perform that action at this time.
0 commit comments