]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
whisper : fix compiler warnings in whisper.cpp (#2895)
authorDaniel Bevenius <redacted>
Tue, 18 Mar 2025 12:38:41 +0000 (13:38 +0100)
committerGitHub <redacted>
Tue, 18 Mar 2025 12:38:41 +0000 (13:38 +0100)
commit215990abdeb7554b313f6646784c4d6de17aaae7
tree70d320d896ef0b09252d8e4b3fdb6ec75530aecb
parent7e23d8c64ae180deb5e9f8b80e259bccc2f99e7c
whisper : fix compiler warnings in whisper.cpp (#2895)

This commit fixes compiler warnings in whisper.cpp by changing the type
of the loop index variable from int64_t to size_t.

Currently the following warnings are generated by the compiler:
```console
/whisper.cpp/src/whisper.cpp:209:27: warning: comparison of integers of different signs: 'int64_t' (aka 'long long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
  209 |     for (int64_t i = 0; i < nels; ++i) {
      |                         ~ ^ ~~~~
/whisper.cpp/src/whisper.cpp:219:27: warning: comparison of integers of different signs: 'int64_t' (aka 'long long') and 'size_t' (aka 'unsigned long') [-Wsign-compare]
  219 |     for (int64_t i = 0; i < nels; ++i) {
      |                         ~ ^ ~~~~
```
src/whisper.cpp