Skip to content

Commit

Permalink
rtlib: fb_hStr2Double(): Eliminate some dead code
Browse files Browse the repository at this point in the history
(the radix variable is always set to non-zero since commit 9b388d8)
  • Loading branch information
dkl committed Nov 30, 2014
1 parent f616c4f commit 3764b62
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/rtlib/str_convfrom.c
Expand Up @@ -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':
Expand All @@ -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
Expand Down

0 comments on commit 3764b62

Please sign in to comment.