X-Git-Url: http://git.squeep.com/?p=dcpu16;a=blobdiff_plain;f=as-dcpu16.c;h=1475ddfa661303cdc9dd9461c6ce3ccde4d1b32c;hp=f22e848867ce58d74c831dff22c0c6ab5e7a9042;hb=e2032a302e614b300909c8304cfa7d4f34eb023c;hpb=db943a12b03f048f4f135c38a96e9ee0aa3c7a48 diff --git a/as-dcpu16.c b/as-dcpu16.c index f22e848..1475ddf 100644 --- a/as-dcpu16.c +++ b/as-dcpu16.c @@ -710,7 +710,7 @@ int instr_assemble_(struct dynamic_array *labels, struct instruction_ *i, unsign struct operand_ *o = i->operands; if (opt_.verbose > 2) { - printf("%s: assembling %p ", __func__, i); + printf("%s: assembling %p ", __func__, (void *)i); instruction_print_(i, 1); printf("(line %zu)\n", i->src_line); } @@ -743,7 +743,7 @@ while debugging, always reassemble char *x; unsigned long l; - DEBUG_PRINTF("DAT operand:'%s' next:%p\n", o->operand, o->next); + DEBUG_PRINTF("DAT operand:'%s' next:%p\n", o->operand, (void *)o->next); /* is this a string? */ /* does it start with a quote, and end with the same quote? */