[Scummvm-cvs-logs] CVS: scummvm/base main.cpp,1.4,1.5
Max Horn
fingolfin at users.sourceforge.net
Sat Sep 20 13:59:03 CEST 2003
Update of /cvsroot/scummvm/scummvm/base
In directory sc8-pr-cvs1:/tmp/cvs-serv16835
Modified Files:
main.cpp
Log Message:
fixed AMD64 warning
Index: main.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/main.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- main.cpp 20 Sep 2003 00:37:09 -0000 1.4
+++ main.cpp 20 Sep 2003 20:58:31 -0000 1.5
@@ -297,11 +297,11 @@
#undef free
void free_check(void *ptr) {
- if ((uint)ptr == 0xE7E7E7E7UL) {
+ if ((unsigned long)ptr == 0xE7E7E7E7UL) {
printf("ERROR: freeing 0xE7E7E7E7\n");
exit(1);
}
- if ((int)ptr & 1) {
+ if ((unsigned long)ptr & 1) {
warning("Freeing odd address 0x%x", ptr);
}
free(ptr);
More information about the Scummvm-git-logs
mailing list