Fix bugs with handling types of integer constants.

We now follow the rule that the type of an integer constant is
the first of int32, uint32, int64, uint64, that can hold the
value.  (Unless 'u' or 'l' suffixes have been provided.)

Fixes issue #299.
This commit is contained in:
Matt Pharr
2012-07-08 08:43:03 -07:00
parent 0d534720bb
commit 080241b7d1
2 changed files with 20 additions and 7 deletions

View File

@@ -144,7 +144,7 @@ struct ForeachDimension {
%}
%union {
int64_t intVal;
uint64_t intVal;
float floatVal;
std::string *stringVal;
const char *constCharPtr;