From c7636dc954eddfe58f7959392602fbc9072d77e7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 29 Mar 2011 04:01:45 +0000 Subject: String's replace function now doesn't get false positives on partial matches at the end of strings. Build should work much better now. --- src/formatter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/formatter.h') diff --git a/src/formatter.h b/src/formatter.h index a7689e1..b66f621 100644 --- a/src/formatter.h +++ b/src/formatter.h @@ -160,7 +160,7 @@ namespace Bu int c = f; fTmp += (char)((c<10)?('0'+c):(cBase+c-10)); f -= (int)f; - for( int j = 0; j < 150 && f; j++ ) + for( int j = 0; j < 8 && f; j++ ) { if( iScale - j == 0 ) fTmp += '.'; -- cgit v1.2.3