diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 09:19:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 11:29:17 +0000 |
commit | 5806a777b0bd8c2c988586daac6e7b5a4085ef7e (patch) | |
tree | f94a52497dfa2da81d057799ed0200a868f04d7a /idlc | |
parent | 12d7d3f368cfe82c2ec8c3f1779ebb43ef3d1453 (diff) |
coverity#440064 Logically dead code
Change-Id: I52c9e37ca4d3238b9018264b6542a9dcebca13f6
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/scanner.l | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l index 7519a7b5ab6e..7787124d1d2c 100644 --- a/idlc/source/scanner.l +++ b/idlc/source/scanner.l @@ -140,7 +140,7 @@ static double asciiToFloat(const sal_Char *s) { double d = 0.0; double e, k; - sal_Int32 neg = 0, negexp = 0; + sal_Int32 neg = 0; if (*s == '-') { @@ -168,7 +168,6 @@ static double asciiToFloat(const sal_Char *s) s++; if (*s == '-') { - negexp = 1; s++; } else { @@ -184,10 +183,7 @@ static double asciiToFloat(const sal_Char *s) { for (k = 1; e > 0; k *= 10, e--) ; - if (negexp) - d /= k; - else - d *= k; + d /= k; } } } |