Fixed a bug which was causing decimal constants less than zero to be interpreted as octal
git-svn-id: http://picoc.googlecode.com/svn/trunk@308 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
c1381adae5
commit
022e09a7a6
2
lex.c
2
lex.c
|
@ -144,7 +144,7 @@ enum LexToken LexGetNumber(struct LexState *Lexer, struct Value *Value)
|
|||
{ Base = 16; Lexer->Pos++; }
|
||||
else if (*Lexer->Pos == 'b' || *Lexer->Pos == 'B')
|
||||
{ Base = 2; Lexer->Pos++; }
|
||||
else
|
||||
else if (*Lexer->Pos != '.')
|
||||
Base = 8;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
# ifndef NO_FP
|
||||
# include <math.h>
|
||||
# define PICOC_MATH_LIBRARY
|
||||
# define NEED_MATH_LIBRARY
|
||||
# undef NEED_MATH_LIBRARY
|
||||
# undef BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue