summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-03-11 16:10:43 +0200
committerTor Lillqvist <tml@collabora.com>2014-03-11 17:17:39 +0200
commit45d09ea2712fc56802a639a15f2e4ae6cacbc099 (patch)
tree5ccb0de512ecab0c794b1a5108c059bdf71bc0c3 /sal
parent7b0b20bdd19bdf3903f5b3d623e8d8e110f6df3c (diff)
"overflow" is one word
Change-Id: Ib36c2c5d55f86aff27081a0da554f6e8a81474ee
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/math.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index 9326edb8487b..111d0da9f688 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -812,7 +812,7 @@ inline double stringToDouble(CharT const * pBegin, CharT const * pEnd,
}
else
{
- bool bOverFlow = false;
+ bool bOverflow = false;
long nExp = 0;
for (; p != pEnd; ++p)
{
@@ -821,7 +821,7 @@ inline double stringToDouble(CharT const * pBegin, CharT const * pEnd,
break;
int i = c - CharT('0');
if ( long10Overflow( nExp, i ) )
- bOverFlow = true;
+ bOverflow = true;
else
nExp = nExp * 10 + i;
}
@@ -829,14 +829,14 @@ inline double stringToDouble(CharT const * pBegin, CharT const * pEnd,
{
if ( bExpSign )
nExp = -nExp;
- long nAllExp = ( bOverFlow ? 0 : nExp + nValExp );
- if ( nAllExp > DBL_MAX_10_EXP || (bOverFlow && !bExpSign) )
+ long nAllExp = ( bOverflow ? 0 : nExp + nValExp );
+ if ( nAllExp > DBL_MAX_10_EXP || (bOverflow && !bExpSign) )
{ // overflow
fVal = HUGE_VAL;
eStatus = rtl_math_ConversionStatus_OutOfRange;
}
else if ((nAllExp < DBL_MIN_10_EXP) ||
- (bOverFlow && bExpSign) )
+ (bOverflow && bExpSign) )
{ // underflow
fVal = 0.0;
eStatus = rtl_math_ConversionStatus_OutOfRange;