diff options
| author | grischka <grischka> | 2009-07-18 22:05:58 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2009-07-18 22:05:58 +0200 |
| commit | 035918ef2f33c4d9f1312dab3fde6f08b80a3766 (patch) | |
| tree | 7d4f90965101faea3a0d3bb34ff9aa5018ec8f00 /tccpp.c | |
| parent | 459875796b1b3049551dabd887bc24addffab136 (diff) | |
| download | tinycc-035918ef2f33c4d9f1312dab3fde6f08b80a3766.tar.gz tinycc-035918ef2f33c4d9f1312dab3fde6f08b80a3766.tar.bz2 | |
win64: fix pointer <-> unsigned long typecast issues
Diffstat (limited to 'tccpp.c')
| -rw-r--r-- | tccpp.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -129,7 +129,11 @@ char *get_tok_str(int v, CValue *cv) case TOK_CLLONG: case TOK_CULLONG: /* XXX: not quite exact, but only useful for testing */ +#ifdef _WIN32 + sprintf(p, "%u", (unsigned)cv->ull); +#else sprintf(p, "%Lu", cv->ull); +#endif break; case TOK_LCHAR: cstr_ccat(&cstr_buf, 'L'); @@ -947,7 +951,7 @@ static void label_pop(Sym **ptop, Sym *slast) if (s->c) { /* define corresponding symbol. A size of 1 is put. */ - put_extern_sym(s, cur_text_section, (long)s->next, 1); + put_extern_sym(s, cur_text_section, s->jnext, 1); } } /* remove label */ |
