We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f4306 commit ddf2144Copy full SHA for ddf2144
src/grammar/Visitor.hpp
@@ -62,6 +62,7 @@
62
#include <limits>
63
#include <regex>
64
#include <tuple>
65
+#include <cstdint>
66
67
namespace Sand
68
{
@@ -3322,14 +3323,14 @@ class Visitor
3322
3323
str.erase(std::remove(str.begin(), str.end(), '_'), str.end());
3324
str.erase(std::remove(str.begin(), str.end(), '\''), str.end());
3325
- unsigned long integer = 0;
3326
+ uint64_t integer = 0;
3327
std::string name = "";
3328
Type *type = nullptr;
3329
bool is_signed = true;
3330
3331
try
3332
- integer = std::stoul(str, nullptr, base);
3333
+ integer = std::stoull(str, nullptr, base);
3334
}
3335
catch (std::out_of_range &)
3336
0 commit comments