r351 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Sep 25 06:29:04 EDT 2007
Author: icculus
Date: 2007-09-25 06:29:03 -0400 (Tue, 25 Sep 2007)
New Revision: 351
Modified:
trunk/fileio.c
trunk/gui.c
trunk/mojosetup.c
Log:
Cleaned up some compiler warnings on VS.NET 2005.
Modified: trunk/fileio.c
===================================================================
--- trunk/fileio.c 2007-09-25 09:51:03 UTC (rev 350)
+++ trunk/fileio.c 2007-09-25 10:29:03 UTC (rev 351)
@@ -141,12 +141,12 @@
iofailure = true;
else
{
- if (MojoPlatform_write(out, scratchbuf_128k, br) != br)
+ if (MojoPlatform_write(out, scratchbuf_128k, (uint32) br) != br)
iofailure = true;
else
{
if (checksums != NULL)
- MojoChecksum_append(&sumctx, scratchbuf_128k, br);
+ MojoChecksum_append(&sumctx, scratchbuf_128k, (uint32) br);
bw += br;
} // else
} // else
Modified: trunk/gui.c
===================================================================
--- trunk/gui.c 2007-09-25 09:51:03 UTC (rev 350)
+++ trunk/gui.c 2007-09-25 10:29:03 UTC (rev 351)
@@ -132,7 +132,7 @@
{
const uint32 imglen = (uint32) io->length(io);
uint8 *img = (uint8 *) xmalloc(imglen);
- const uint32 br = io->read(io, img, imglen);
+ const uint32 br = (uint32) io->read(io, img, imglen);
io->close(io);
if (br == imglen)
lib = MojoPlatform_dlopen(img, imglen);
Modified: trunk/mojosetup.c
===================================================================
--- trunk/mojosetup.c 2007-09-25 09:51:03 UTC (rev 350)
+++ trunk/mojosetup.c 2007-09-25 10:29:03 UTC (rev 351)
@@ -430,7 +430,7 @@
int fatal(const char *fmt, ...)
{
static boolean in_fatal = false;
- size_t len = 128;
+ int len = 128;
char *buf = NULL;
int rc = 0;
va_list ap;
More information about the mojosetup-commits
mailing list