diff options
author | Stephan Bergmann <sb@openoffice.org> | 2002-03-28 09:31:15 +0000 |
---|---|---|
committer | Stephan Bergmann <sb@openoffice.org> | 2002-03-28 09:31:15 +0000 |
commit | d3007e432d5f5800014d9039e1b6073560c210e4 (patch) | |
tree | e561d88efc00a4590795df46b93b31d8193a50f3 | |
parent | 87968d3fef9f986c041c64c173a94f7f76711f4e (diff) |
#98431# Fixed O[U]String.toDouble.
-rw-r--r-- | sal/rtl/source/strtmpl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sal/rtl/source/strtmpl.c b/sal/rtl/source/strtmpl.c index 9cc0f310bb1b..ef8ba6c1b801 100644 --- a/sal/rtl/source/strtmpl.c +++ b/sal/rtl/source/strtmpl.c @@ -2,9 +2,9 @@ * * $RCSfile: strtmpl.c,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: th $ $Date: 2001-07-30 17:46:11 $ + * last change: $Author: sb $ $Date: 2002-03-28 10:31:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1104,9 +1104,7 @@ static double IMPL_RTL_STRNAME( ImplStringToDouble )( const IMPL_RTL_STRCODE* pS } else if ( *pStr == '+' ) { - if ( bExp && (nExp != 0) ) - break; - if ( fRet != 0.0 ) + if ( bExp ? nExp != 0 : fRet != 0.0 ) break; } /* Exponent separator */ |