Skip to content

Commit 3764b62

Browse files
committed
rtlib: fb_hStr2Double(): Eliminate some dead code
(the radix variable is always set to non-zero since commit 9b388d8)
1 parent f616c4f commit 3764b62

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/rtlib/str_convfrom.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ FBCALL double fb_hStr2Double( char *src, ssize_t len )
1818
else if( (len >= 2) && (p[0] == '&') )
1919
{
2020
skip = 2;
21-
radix = 0;
2221
switch( p[1] )
2322
{
2423
case 'h':
@@ -40,8 +39,7 @@ FBCALL double fb_hStr2Double( char *src, ssize_t len )
4039
break;
4140
}
4241

43-
if( radix != 0 )
44-
return (double)fb_hStrRadix2Longint( &p[skip], len - skip, radix );
42+
return fb_hStrRadix2Longint( p + skip, len - skip, radix );
4543
}
4644

4745
/* Workaround: strtod() does not allow 'd' as an exponent specifier on

0 commit comments

Comments
 (0)