Ray 2 年之前
父节点
当前提交
51387dfbfb
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 }