gnucash master: Fix typo in GcnRational's + operator

Geert Janssens gjanssens at code.gnucash.org
Tue Feb 21 10:56:20 EST 2017


Updated	 via  https://github.com/Gnucash/gnucash/commit/c2f21f01 (commit)
	from  https://github.com/Gnucash/gnucash/commit/7c041eb2 (commit)



commit c2f21f0162d3c21287b82759915a91bbf7ddd033
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Tue Feb 21 16:56:14 2017 +0100

    Fix typo in GcnRational's + operator

diff --git a/src/libqof/qof/gnc-rational.hpp b/src/libqof/qof/gnc-rational.hpp
index 6eb1198..59cf685 100644
--- a/src/libqof/qof/gnc-rational.hpp
+++ b/src/libqof/qof/gnc-rational.hpp
@@ -246,7 +246,7 @@ inline GncRational operator+(GncRational a, GncInt128 b)
 }
 inline GncRational operator+(GncInt128 a, GncRational b)
 {
-    return GncRational(a, 1) + a;
+    return GncRational(a, 1) + b;
 }
 GncRational operator-(GncRational a, GncRational b);
 inline GncRational operator-(GncRational a, GncInt128 b)



Summary of changes:
 src/libqof/qof/gnc-rational.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list