From ad9f80c1c5d3f5aa4b32d688cd06bb6e78f10e30 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Mon, 4 Dec 2006 13:25:51 +0100 Subject: [PATCH] improve the precision of the multiplication operator --- src/simulator/high-precision-128.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simulator/high-precision-128.cc b/src/simulator/high-precision-128.cc index ebf677dba..593798f99 100644 --- a/src/simulator/high-precision-128.cc +++ b/src/simulator/high-precision-128.cc @@ -86,8 +86,8 @@ HighPrecision::Sub (HighPrecision const &o) bool HighPrecision::Mul (HighPrecision const &o) { - m_value = _cairo_int128_mul (m_value, o.m_value); - m_value = _cairo_int128_rsa (m_value, 64); + cairo_int128_t other = _cairo_int128_rsa (o.m_value, 64); + m_value = _cairo_int128_mul (m_value, other); return false; } bool