From 3764b62396c14c828a4f7918830a9d23b205aa98 Mon Sep 17 00:00:00 2001 From: dkl Date: Sun, 30 Nov 2014 13:36:06 +0100 Subject: [PATCH] rtlib: fb_hStr2Double(): Eliminate some dead code (the radix variable is always set to non-zero since commit 9b388d891b02) --- src/rtlib/str_convfrom.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rtlib/str_convfrom.c b/src/rtlib/str_convfrom.c index 0d05434c88..34cb234969 100644 --- a/src/rtlib/str_convfrom.c +++ b/src/rtlib/str_convfrom.c @@ -18,7 +18,6 @@ FBCALL double fb_hStr2Double( char *src, ssize_t len ) else if( (len >= 2) && (p[0] == '&') ) { skip = 2; - radix = 0; switch( p[1] ) { case 'h': @@ -40,8 +39,7 @@ FBCALL double fb_hStr2Double( char *src, ssize_t len ) break; } - if( radix != 0 ) - return (double)fb_hStrRadix2Longint( &p[skip], len - skip, radix ); + return fb_hStrRadix2Longint( p + skip, len - skip, radix ); } /* Workaround: strtod() does not allow 'd' as an exponent specifier on