Use deca::num in Parser.hpp
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
3c4dc0ea28
commit
e32b2172e5
|
@ -51,7 +51,7 @@ namespace Parser {
|
||||||
i += 2;
|
i += 2;
|
||||||
const string& right = lexed[i].toktext;
|
const string& right = lexed[i].toktext;
|
||||||
p = min(static_cast<int>(right.size()), numeric_limits<long double>::digits10);
|
p = min(static_cast<int>(right.size()), numeric_limits<long double>::digits10);
|
||||||
v += copysign(stold(right.substr(0, p)) / powl(10, p), v);
|
v += copysign(stold(right.substr(0, p)) / powl(deca::num, p), v);
|
||||||
}
|
}
|
||||||
parseTree << types::Integer(v, p);
|
parseTree << types::Integer(v, p);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue