comparison lwasm/expr.c @ 260:1bdb4e256fc9 2.x 2.6.1

Fixed segfault on reference to sizeof{}
author lost
date Sat, 26 Dec 2009 02:36:43 +0000
parents c8787fad0f9f
children
comparison
equal deleted inserted replaced
259:c3a34f820893 260:1bdb4e256fc9
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++;