Ray %!s(int64=2) %!d(string=hai) anos
pai
achega
51387dfbfb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/rtext.c

+ 1 - 1
src/rtext.c

@@ -1340,7 +1340,7 @@ int TextToInteger(const char *text)
         text++;
     }
 
-    for (int i = 0; ((text[i] >= '0') && (text[i] <= '9')); ++i) value = value*10 + (int)(text[i] - '0');
+    for (int i = 0; ((text[i] >= '0') && (text[i] <= '9')); i++) value = value*10 + (int)(text[i] - '0');
 
     return value*sign;
 }