diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-03-17 09:50:52 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-03-17 09:50:52 +0000 |
commit | 15b5fe532469932bfd82245dd8962bebc1e1b86b (patch) | |
tree | 1400e81c28ea8f11f762a2a86c99f69022da5324 /psprint | |
parent | 82a738357814bb60505f3f52ab6bde50dd16ee21 (diff) |
INTEGRATION: CWS cups01 (1.3.76); FILE MERGED
2004/02/13 17:05:29 pl 1.3.76.3: RESYNC: (1.3-1.4); FILE MERGED
2003/12/01 15:18:30 pl 1.3.76.2: removed an ambiguity for workshop compiler
2003/08/12 10:21:48 pl 1.3.76.1: removed myriads of warnings
Diffstat (limited to 'psprint')
-rw-r--r-- | psprint/source/helper/strhelper.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/psprint/source/helper/strhelper.cxx b/psprint/source/helper/strhelper.cxx index 607883dec35f..4ea506be2bb6 100644 --- a/psprint/source/helper/strhelper.cxx +++ b/psprint/source/helper/strhelper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: strhelper.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: vg $ $Date: 2003-12-17 20:21:56 $ + * last change: $Author: obo $ $Date: 2004-03-17 10:50:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -664,12 +664,12 @@ int getValueOfDouble( char* pBuffer, double f, int nPrecision ) *pBuffer++ = '-'; f = -f; } - int exponent = log10( f ); + int exponent = (int)log10( f ); if( exponent < 4 && exponent > -4 ) exponent = 0; f /= pow( 10, (double) exponent ); - int nInt = f; + int nInt = (int)f; f -= nInt; // f should really not be 1.0 after this, but some // hardware implementations seem to round at this point @@ -696,7 +696,7 @@ int getValueOfDouble( char* pBuffer, double f, int nPrecision ) do { f *= 10; - nInt = f; + nInt = (int)f; f -= nInt; // f should really not be 1.0 after this, but some // hardware implementations seem to round at this point |