git @ Cat's Eye Technologies Tamsin / f37e1e8
Fix signedness bug. All stage-0 compiler tests pass. Chris Pressey 11 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2020 char *text;
2121
2222 if (size == 1) {
23 int i;
2324 if (term_single_byte_table == NULL) {
24 int i;
2525 term_single_byte_table = malloc(sizeof(struct term) * 256);
2626 for (i = 0; i < 256; i++) {
2727 term_single_byte_data[i] = (char)i;
3131 term_single_byte_table[i].subterms = NULL;
3232 }
3333 }
34 return &term_single_byte_table[(int)atom[0]];
34 i = ((unsigned char *)atom)[0];
35 return &term_single_byte_table[i];
3536 }
3637
3738 t = malloc(sizeof(struct term));