While playing with various combinations of characters in Symbol literals
I discovered that a negative number, as in "#-123", causes a memory
access violation. The code is just way over my head so I wasn't able to
figure out a fix for it... But while I was looking at it, I noticed a
typo in print_token, in libgst/lex.c and fixed that instead. :P See
the attached patch.
Best,
Jānis
Index: libgst/lex.c
===================================================================
--- libgst/lex.c (revision 2)
+++ libgst/lex.c (working copy)
@@ -1170,7 +1170,7 @@
printf ("FLOATQ_LITERAL: %Lg\n", yylval->fval);
break;
case CHAR_LITERAL:
- printf ("CHAR_LITERAL: %d", yylval->ival,
+ printf ("CHAR_LITERAL: %d", yylval->ival);
if (yylval->ival >= 32 && yylval->ival <= 126)
printf (" ($%c)", (char) yylval->ival);
printf ("\n");
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk