comparison lwasm/expr.c @ 270:6e940229360b 2.6 2.6.1-fixed

Fixed segault in resolution of sizeof{}
author lost
date Sat, 26 Dec 2009 02:39:31 +0000
parents c8787fad0f9f
children
comparison
equal deleted inserted replaced
269:6cbc409ff09f 270:6e940229360b
432 int l = 0; 432 int l = 0;
433 char *sb; 433 char *sb;
434 int havedol = 0; 434 int havedol = 0;
435 435
436 // evaluate a symbol here 436 // evaluate a symbol here
437 static const char *symchars = "_.$@?abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; 437 static const char *symchars = "_.$@?abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789{}";
438 while ((*p)[l] && strchr(symchars, (*p)[l])) 438 while ((*p)[l] && strchr(symchars, (*p)[l]))
439 { 439 {
440 if ((*p)[l] == '$') 440 if ((*p)[l] == '$')
441 havedol = 1; 441 havedol = 1;
442 l++; 442 l++;