From a97b09cca0d7b87fcd92959817bf8123cd0aa3ef Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 7 Sep 2016 23:49:21 -0500 Subject: [PATCH] Fix warning concering always true check --- src/ox/std/strops.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }