win64: fix pointer <-> unsigned long typecast issues

This commit is contained in:
grischka
2009-07-18 22:05:58 +02:00
parent 459875796b
commit 035918ef2f
6 changed files with 34 additions and 19 deletions

View File

@ -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 */