{IDENTIFIER} printf("ident %s\n", yytext);
-{NUMBER_DEC} printf("num %x\n", strtol(yytext, (char **)NULL, 10));
+{NUMBER_DEC} printf("num %lx\n", strtol(yytext, (char **)NULL, 10));
{NUMBER_HEX} {
#if 0
char *copy=strdup(yytext);
copy[strlen(copy)-1]='\0';
#endif
- printf("num %x\n", strtol(yytext, (char **)NULL, 16));
+ printf("num %lx\n", strtol(yytext, (char **)NULL, 16));
}
{WHITESPACE} /* ignorieren */