lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/005 fd74b61 03/17: Correct an obvious mistak


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/005 fd74b61 03/17: Correct an obvious mistake
Date: Sat, 16 Jan 2021 21:06:17 -0500 (EST)

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

    Correct an obvious mistake
    
    A unit test should have caught this.
---
 round_to.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/round_to.hpp b/round_to.hpp
index 66b1d62..bd79bef 100644
--- a/round_to.hpp
+++ b/round_to.hpp
@@ -394,7 +394,7 @@ std::vector<currency> 
round_to<RealType>::c(std::vector<RealType> r) const
 {
     std::vector<currency> z;
     z.reserve(r.size());
-    for(auto const& i : r) {z.push_back(c()(i));}
+    for(auto const& i : r) {z.push_back(c(i));}
     return z;
 }
 



reply via email to

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