diff options
| author | jeffro256 <jeffro256@tutanota.com> | 2023-05-08 12:23:58 -0500 |
|---|---|---|
| committer | jeffro256 <jeffro256@tutanota.com> | 2023-06-02 22:15:02 -0500 |
| commit | cfc62277c01412f6bcfae0cf1736812c42e28d65 (patch) | |
| tree | 9cde65dd8e7e020a81ed499023a052718df4bad0 /src/cryptonote_basic | |
| parent | 1ce32d85364e6aa2896361bff9618328cf0123f1 (diff) | |
| download | monzero-core-cfc62277c01412f6bcfae0cf1736812c42e28d65.tar.gz monzero-core-cfc62277c01412f6bcfae0cf1736812c42e28d65.tar.xz monzero-core-cfc62277c01412f6bcfae0cf1736812c42e28d65.zip | |
cryptonote_basic: fix amount overflow detection on 32-bit systems [RELEASE]
Diffstat (limited to 'src/cryptonote_basic')
| -rw-r--r-- | src/cryptonote_basic/cryptonote_format_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_basic/cryptonote_format_utils.cpp b/src/cryptonote_basic/cryptonote_format_utils.cpp index 829e5fc70..8be23583b 100644 --- a/src/cryptonote_basic/cryptonote_format_utils.cpp +++ b/src/cryptonote_basic/cryptonote_format_utils.cpp @@ -1229,7 +1229,7 @@ namespace cryptonote char *end = NULL; errno = 0; const unsigned long long ull = strtoull(buf, &end, 10); - CHECK_AND_ASSERT_THROW_MES(ull != ULONG_MAX || errno == 0, "Failed to parse rounded amount: " << buf); + CHECK_AND_ASSERT_THROW_MES(ull != ULLONG_MAX || errno == 0, "Failed to parse rounded amount: " << buf); CHECK_AND_ASSERT_THROW_MES(ull != 0 || amount == 0, "Overflow in rounding"); return ull; } |
