diff --git a/src/ox/std/strops.cpp b/src/ox/std/strops.cpp index bd34e46f2..1332ccc11 100644 --- a/src/ox/std/strops.cpp +++ b/src/ox/std/strops.cpp @@ -34,7 +34,7 @@ int ox_atoi(const char *str) { int total = 0; int multiplier = 1; - for (size_t i = ox_strlen(str) - 1; i >= 0; i--) { + for (auto i = ox_strlen(str) - 1; i != 0; i--) { total += (str[i] - '0') * multiplier; multiplier *= 10; }