Commit 0c22db58 authored by Frederick Zhang's avatar Frederick Zhang

fix parsing negative number

parent cbe14051
......@@ -30,7 +30,7 @@ zval * bint::parse(const std::string &ben, size_t &pt) {
std::string strint = "";
while (ben[pt] != 'e') strint += ben[pt++];
long result = std::stoull(strint);
long result = std::stoll(strint);
zval _zv;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment