From 035918ef2f33c4d9f1312dab3fde6f08b80a3766 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 18 Jul 2009 22:05:58 +0200 Subject: win64: fix pointer <-> unsigned long typecast issues --- tccpp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tccpp.c') diff --git a/tccpp.c b/tccpp.c index 1a9242b..505ba52 100644 --- a/tccpp.c +++ b/tccpp.c @@ -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 */ -- cgit v1.3.1