From 35f2a8a28bc628456cfaf6e3423703368cc406c3 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Tue, 2 Feb 2010 21:05:08 +0000 Subject: [PATCH] the half-to-even rounding was turned off (some 'return' statement left) git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@284 e52654a7-88a9-db11-a3e9-0013d4bc506e --- ttmath/ttmathbig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ttmath/ttmathbig.h b/ttmath/ttmathbig.h index a658d1f..771f9c8 100644 --- a/ttmath/ttmathbig.h +++ b/ttmath/ttmathbig.h @@ -729,7 +729,7 @@ private: uint RoundHalfToEven(bool is_half, bool rounding_up = true) { uint c = 0; -return 0; + if( !is_half || mantissa.IsTheLowestBitSet() ) { if( rounding_up )