[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] valyuta/002 fb82290 63/65: Use maximal 64-bit rather
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] valyuta/002 fb82290 63/65: Use maximal 64-bit rather than 32-bit integer value |
Date: |
Wed, 16 Sep 2020 16:55:23 -0400 (EDT) |
branch: valyuta/002
commit fb82290f61e7ec5d77d943f2df43d1fc3c5b79a6
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Use maximal 64-bit rather than 32-bit integer value
'master' has the lowest normalized 'double' value. Changing that to
the lowest 32-bit integer value caused that value to be the minimum
possible AV, and it wasn't low enough for some solves.
---
ihs_acctval.cpp | 2 +-
ihs_avmly.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index e4d3a3d..fc92a37 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -617,7 +617,7 @@ void AccountValue::SetInitialValues()
// negative number that can be negated without the sort of
// surprising result seen with INT_MIN, which is -2147483648.
// Why that intention makes sense is another matter.
- HoneymoonValue = currency(-2147483647);
+ HoneymoonValue = currency(-9223372036854775807);
if(mce_gen_curr == GenBasis_)
{
HoneymoonActive = yare_input_.HoneymoonEndorsement;
diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index b822e5f..fe8c0c5 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -2063,7 +2063,7 @@ void AccountValue::TxTestHoneymoonForExpiration()
// negative number that can be negated without the sort of
// surprising result seen with INT_MIN, which is -2147483648.
// Why that intention makes sense is another matter.
- HoneymoonValue = currency(-2147483647);
+ HoneymoonValue = currency(-9223372036854775807);
}
}
- [lmi-commits] [lmi] valyuta/002 6b28993 06/65: clarify non-MEC solves, (continued)
- [lmi-commits] [lmi] valyuta/002 6b28993 06/65: clarify non-MEC solves, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 03262ae 16/65: commented-out curiosity, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 d63c5b3 33/65: round all the things, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 39eb954 36/65: symmetric binary operators, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 6381b2f 44/65: Throw on overflow, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 e0c5136 45/65: improve documentation, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 7bac50c 50/65: default-initialize currency, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 f7f87b2 42/65: unit test: overflow, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 9ea1df7 54/65: further improve preceding commit, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 ba43414 61/65: Record 64-bit timings, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 fb82290 63/65: Use maximal 64-bit rather than 32-bit integer value,
Greg Chicares <=
- [lmi-commits] [lmi] valyuta/002 8fd00bb 34/65: rework operator*(), Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 bf1943b 03/65: reformat, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 7481c2b 09/65: discard--throwaway assertions, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 998fdf5 35/65: operator/(), Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 c105c78 29/65: Currency: implement binary operator-, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 9cf4517 46/65: c(), Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 9da6616 55/65: Round explicitly in a few more cases, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 0e8c429 12/65: rounding, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 794727e 22/65: Round when converting from double to currency, Greg Chicares, 2020/09/16
- [lmi-commits] [lmi] valyuta/002 d137177 02/65: Currency, Greg Chicares, 2020/09/16