fixed decimal number parsing
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 25 Jan 2007 14:56:53 +0000 (14:56 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 25 Jan 2007 14:56:53 +0000 (14:56 +0000)
[r8559]

ir/debug/debugger.c

index 0bab606..04bd0a0 100644 (file)
@@ -1008,7 +1008,7 @@ static unsigned get_token(void) {
                for (;;) {
                        if (! isdigit(c))
                                break;
-                       number = (number << 4) | (c - '0');
+                       number = number * 10 + (c - '0');
                        c = next_char();
                }
                unput();