================
Comment at: tools/lldb-mi/MIUtilString.cpp:460
@@ -439,7 +459,3 @@
 
-    const MIint64 nNum = ::strtoul(this->c_str(), nullptr, 16);
-    if (nNum != LONG_MAX)
-    {
-        vwrNumber = nNum;
-        return true;
-    }
+    const MIuint64 nNum = ::strtoull(this->c_str(), nullptr, 16);
+    if (nNum == ULLONG_MAX && errno == ERANGE)
----------------
set errno to 0 before strtoull()

http://reviews.llvm.org/D7610

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/



_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to