warning fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4098 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2009-01-02 17:43:40 +00:00
parent ef014a3355
commit d503852b84
4 changed files with 16 additions and 8 deletions
+2 -2
View File
@@ -149,7 +149,7 @@ const char *maketimestr()
time(&rawtime);
timeinfo = localtime(&rawtime);
if(!timeinfo) return NULL;
int len = strftime(buf, sizeof(buf), "%Y%b%d_%H%M%S", timeinfo);
int len = (int)strftime(buf, sizeof(buf), "%Y%b%d_%H%M%S", timeinfo);
if(!len || len>=(int)sizeof(buf)) return NULL;
return buf;
}
@@ -189,7 +189,7 @@ void jpeg_screenshot(char *imagepath)
jpeg_set_quality(&cinfo, jpegquality, TRUE);
jpeg_start_compress(&cinfo, TRUE);
const char *comment = asciiscores(true);
jpeg_write_marker(&cinfo, JPEG_COM, (JOCTET *) comment, strlen(comment));
jpeg_write_marker(&cinfo, JPEG_COM, (JOCTET *) comment, (uint)strlen(comment));
while(cinfo.next_scanline < cinfo.image_height)
{