Skip to content

Commit 09afd78

Browse files
committed
fix: build error on sfos arm32
1 parent e9ea20e commit 09afd78

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/fasterwhisper_engine.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,11 @@ void fasterwhisper_engine::decode_speech(const whisper_buf_t& buf) {
387387

388388
auto stats = report_stats(
389389
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()))));
394395

395396
auto result = merge_texts(m_intermediate_text.value_or(std::string{}),
396397
std::move(text));

src/whisper_engine.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,11 @@ void whisper_engine::decode_speech(const whisper_buf_t& buf) {
661661

662662
auto stats = report_stats(
663663
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()))));
668669

669670
auto auto_lang_id = [&]() -> std::string {
670671
if (!m_wparams.language) { // auto-detected lang

0 commit comments

Comments
 (0)