From d3007e432d5f5800014d9039e1b6073560c210e4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 28 Mar 2002 09:31:15 +0000 Subject: #98431# Fixed O[U]String.toDouble. --- sal/rtl/source/strtmpl.c | 8 +++----- 1 file 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 */ -- cgit