Mercurial > hg > tinycc
changeset 589:49d3fc246344
Small fix for building on a 64 bit host.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 06 Apr 2008 16:10:01 -0500 |
parents | 99c839b47e5d |
children | 18ffc34ebf5d |
files | tcc.c tcc.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tcc.c Sun Apr 06 15:11:54 2008 -0500 +++ b/tcc.c Sun Apr 06 16:10:01 2008 -0500 @@ -8329,7 +8329,7 @@ } tok_str_add(&func_str, -1, 0); tok_str_add(&func_str, 0, 0); - sym->r = (int)func_str.str; + sym->r = (long)func_str.str; } else { /* compute text section */ cur_text_section = ad.section;
--- a/tcc.h Sun Apr 06 15:11:54 2008 -0500 +++ b/tcc.h Sun Apr 06 16:10:01 2008 -0500 @@ -164,7 +164,7 @@ /* symbol management */ typedef struct Sym { int token; /* symbol token */ - int r; /* associated register */ + long r; /* associated register */ long c; /* associated number */ CType type; /* associated type */ struct Sym *next; /* next related symbol */