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

fix parsing negative number

parent cbe14051
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ zval * bint::parse(const std::string &ben, size_t &pt) {
    ++pt;
    std::string strint = "";
    while (ben[pt] != 'e') strint += ben[pt++];
    long result = std::stoull(strint);
    long result = std::stoll(strint);
    ++pt;

    zval _zv;