瀏覽代碼

fixed warning

albertodemichelis 9 年之前
父節點
當前提交
04a4ff5c8d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      squirrel/sqbaselib.cpp

+ 4 - 4
squirrel/sqbaselib.cpp

@@ -17,13 +17,13 @@ static bool str2num(const SQChar *s,SQObjectPtr &res,SQInteger base)
 {
     SQChar *end;
     const SQChar *e = s;
-    SQBool isEIntBase = base > 13; //to fix error converting hexadecimals with e like 56f0791e
-    SQBool isfloat = SQFalse;
+    bool iseintbase = base > 13; //to fix error converting hexadecimals with e like 56f0791e
+    bool isfloat = false;
     SQChar c;
     while((c = *e) != _SC('\0'))
     {
-        if(c == _SC('.') || (!isEIntBase && (c == _SC('E')|| c == _SC('e')))) { //e and E is for scientific notation
-            isfloat = SQTrue;
+        if (c == _SC('.') || (!iseintbase && (c == _SC('E') || c == _SC('e')))) { //e and E is for scientific notation
+            isfloat = true;
             break;
         }
         e++;