fix: harden for large files (#643)

This commit is contained in:
Erik Scholz
2025-09-14 06:44:19 +02:00
committed by GitHub
parent c607fc3ed4
commit 9e7befa320
2 changed files with 4 additions and 4 deletions

View File

@@ -107,7 +107,7 @@ const char* unused_tensors[] = {
};
bool is_unused_tensor(std::string name) {
for (int i = 0; i < sizeof(unused_tensors) / sizeof(const char*); i++) {
for (size_t i = 0; i < sizeof(unused_tensors) / sizeof(const char*); i++) {
if (starts_with(name, unused_tensors[i])) {
return true;
}