lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] valyuta/004 ae4fa16 1/6: Restore monthly-trace preci


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/004 ae4fa16 1/6: Restore monthly-trace precision for currency
Date: Thu, 7 Jan 2021 04:30:41 -0500 (EST)

branch: valyuta/004
commit ae4fa169f4918c44f4ce9429d8e70a6a620532bb
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Restore monthly-trace precision for currency
---
 ihs_avdebug.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ihs_avdebug.cpp b/ihs_avdebug.cpp
index 76bf36c..de2a798 100644
--- a/ihs_avdebug.cpp
+++ b/ihs_avdebug.cpp
@@ -259,7 +259,8 @@ inline void AccountValue::SetMonthlyDetail(int enumerator, 
double d)
 //============================================================================
 inline void AccountValue::SetMonthlyDetail(int enumerator, currency c)
 {
-    DebugRecord[enumerator] = value_cast<std::string>(c);
+    // CURRENCY !! Probably value_cast<>(currency) should be specialized.
+    DebugRecord[enumerator] = value_cast<std::string>(c.d());
 }
 
 //============================================================================



reply via email to

[Prev in Thread] Current Thread [Next in Thread]