X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=token.c;h=6b0a3e6238aea777095bd3dac8fa768054770dbe;hb=1eb7e52711137fdd2c58265bcfb5e71d3e370da0;hp=225a25778a5f8ee335738fb0ff2dbaa9cb9dcdb0;hpb=75cce0d9eb190f6094f66ae283b5981af25e5a57;p=rmac diff --git a/token.c b/token.c index 225a257..6b0a3e6 100644 --- a/token.c +++ b/token.c @@ -1,7 +1,7 @@ // // RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System // TOKEN.C - Token Handling -// Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends +// Copyright (C) 199x Landon Dyer, 2011-2012 Reboot and Friends // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986 // Source Utilised with the Kind Permission of Landon Dyer // @@ -263,7 +263,7 @@ int mexpand(char * src, char * dest, int destsiz) } goto copy_d; case '~': // ==> unique label string Mnnnn... - sprintf(numbuf, "M%ld", curuniq); + sprintf(numbuf, "M%ud", curuniq); copystr: @@ -365,7 +365,7 @@ int mexpand(char * src, char * dest, int destsiz) continue; break; case CONST: - sprintf(numbuf, "$%lx", (LONG)*tk++); + sprintf(numbuf, "$%ux", (LONG)*tk++); d = numbuf; break; case DEQUALS: