Mercurial > hg > index.cgi
diff lwasm/output.c @ 2:7317fbe024af
Clean up insane number of compiler warnings under -Wall
author | lost@l-w.ca |
---|---|
date | Thu, 20 Jan 2011 22:39:46 -0700 |
parents | 2c24602be78f |
children | 6b9991fb39b6 |
line wrap: on
line diff
--- a/lwasm/output.c Wed Jan 19 22:31:00 2011 -0700 +++ b/lwasm/output.c Thu Jan 20 22:39:46 2011 -0700 @@ -342,8 +342,8 @@ writebytes(se -> symbol, strlen(se -> symbol), 1, of); if (se -> context != -1) { - sprintf(buf, "\x01%d", se -> context); - writebytes(buf, strlen(buf), 1, of); + sprintf((char *)buf, "\x01%d", se -> context); + writebytes(buf, strlen((char *)buf), 1, of); } writebytes("", 1, 1, of); return 0; @@ -470,8 +470,8 @@ if (se -> context >= 0) { writebytes("\x01", 1, 1, of); - sprintf(buf, "%d", se -> context); - writebytes(buf, strlen(buf), 1, of); + sprintf((char *)buf, "%d", se -> context); + writebytes(buf, strlen((char *)buf), 1, of); } // the "" is NOT an error writebytes("", 1, 1, of);