| changeset 589: |
49d3fc246344 |
| parent 588: | 99c839b47e5d |
| child 590: | 18ffc34ebf5d |
| author: |
Rob Landley <rob@landley.net> |
| date: |
Sun Apr 06 16:10:01 2008 -0500 (4 years ago) |
| files: |
tcc.c tcc.h |
| description: |
Small fix for building on a 64 bit host. |
1--- a/tcc.c Sun Apr 06 15:11:54 2008 -0500
2+++ b/tcc.c Sun Apr 06 16:10:01 2008 -0500
3@@ -8329,7 +8329,7 @@
4 }
5 tok_str_add(&func_str, -1, 0);
6 tok_str_add(&func_str, 0, 0);
7- sym->r = (int)func_str.str;
8+ sym->r = (long)func_str.str;
9 } else {
10 /* compute text section */
11 cur_text_section = ad.section;
1.1--- a/tcc.h Sun Apr 06 15:11:54 2008 -0500
1.2+++ b/tcc.h Sun Apr 06 16:10:01 2008 -0500
1.3@@ -164,7 +164,7 @@
1.4 /* symbol management */
1.5 typedef struct Sym {
1.6 int token; /* symbol token */
1.7- int r; /* associated register */
1.8+ long r; /* associated register */
1.9 long c; /* associated number */
1.10 CType type; /* associated type */
1.11 struct Sym *next; /* next related symbol */