Browse Source

Syntax

metaverse
jl777 5 years ago
parent
commit
a99263b97e
  1. 4
      src/utilstrencodings.cpp

4
src/utilstrencodings.cpp

@ -419,7 +419,7 @@ bool ParseFixedPoint(const std::string &val, int decimals, int64_t *amount_out)
int mantissa_tzeros = 0; int mantissa_tzeros = 0;
bool mantissa_sign = false; bool mantissa_sign = false;
bool exponent_sign = false; bool exponent_sign = false;
int i,n,ptr = 0; char *str = val.c_str(); int i,n,ptr = 0; char *str = (char *)val.c_str();
int end = val.size(); int end = val.size();
int point_ofs = 0; int point_ofs = 0;
n = val.size(); n = val.size();
@ -430,7 +430,7 @@ bool ParseFixedPoint(const std::string &val, int decimals, int64_t *amount_out)
{ {
if ( val[i] < '0' || val[i] > '9' ) if ( val[i] < '0' || val[i] > '9' )
break; break;
val64 = (val64 * 10) + (val[i] - '0') val64 = (val64 * 10) + (val[i] - '0');
} }
if ( i == n ) // 90000000000 if ( i == n ) // 90000000000
{ {

Loading…
Cancel
Save