aboutsummaryrefslogtreecommitdiff
path: root/src/formatter.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-03-29 04:01:45 +0000
committerMike Buland <eichlan@xagasoft.com>2011-03-29 04:01:45 +0000
commitc7636dc954eddfe58f7959392602fbc9072d77e7 (patch)
treebef0b41561287ead10b5a17ccaa8a66c45efa6a1 /src/formatter.h
parent86e3e2ed03a4889cf64a9149f1f0f5047a889c56 (diff)
downloadlibbu++-c7636dc954eddfe58f7959392602fbc9072d77e7.tar.gz
libbu++-c7636dc954eddfe58f7959392602fbc9072d77e7.tar.bz2
libbu++-c7636dc954eddfe58f7959392602fbc9072d77e7.tar.xz
libbu++-c7636dc954eddfe58f7959392602fbc9072d77e7.zip
String's replace function now doesn't get false positives on partial matches at
the end of strings. Build should work much better now.
Diffstat (limited to '')
-rw-r--r--src/formatter.h2
1 files changed, 1 insertions, 1 deletions
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
160 int c = f; 160 int c = f;
161 fTmp += (char)((c<10)?('0'+c):(cBase+c-10)); 161 fTmp += (char)((c<10)?('0'+c):(cBase+c-10));
162 f -= (int)f; 162 f -= (int)f;
163 for( int j = 0; j < 150 && f; j++ ) 163 for( int j = 0; j < 8 && f; j++ )
164 { 164 {
165 if( iScale - j == 0 ) 165 if( iScale - j == 0 )
166 fTmp += '.'; 166 fTmp += '.';