diff options
| author | practicalswift <[email protected]> | 2018-10-26 18:54:30 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-10-26 19:42:58 +0200 |
| commit | 15db77f4dd7f1a7963398f1576580b577a1697bc (patch) | |
| tree | 0414a87045cbdf0618c23534da58f010d62a8808 /src/utilmoneystr.cpp | |
| parent | Merge #13515: travis: Enable qt for all jobs (diff) | |
| download | discoin-15db77f4dd7f1a7963398f1576580b577a1697bc.tar.xz discoin-15db77f4dd7f1a7963398f1576580b577a1697bc.zip | |
Don't rely on locale dependent functions in base_blob<BITS>::SetHex(...) (uint256), DecodeBase58(...), ParseMoney(...) and ParseHex(...)
Diffstat (limited to 'src/utilmoneystr.cpp')
| -rw-r--r-- | src/utilmoneystr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utilmoneystr.cpp b/src/utilmoneystr.cpp index 326ef9b27..7bae161a1 100644 --- a/src/utilmoneystr.cpp +++ b/src/utilmoneystr.cpp @@ -41,7 +41,7 @@ bool ParseMoney(const char* pszIn, CAmount& nRet) std::string strWhole; int64_t nUnits = 0; const char* p = pszIn; - while (isspace(*p)) + while (IsSpace(*p)) p++; for (; *p; p++) { @@ -56,14 +56,14 @@ bool ParseMoney(const char* pszIn, CAmount& nRet) } break; } - if (isspace(*p)) + if (IsSpace(*p)) break; if (!isdigit(*p)) return false; strWhole.insert(strWhole.end(), *p); } for (; *p; p++) - if (!isspace(*p)) + if (!IsSpace(*p)) return false; if (strWhole.size() > 10) // guard against 63 bit overflow return false; |