Explorar o código

Fixed compiler warnings in malloc.cpp on x86

Fixes #3248

Thanks to @laziem
Lemongrass3110 %!s(int64=6) %!d(string=hai) anos
pai
achega
a4336fd8ae
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/common/malloc.cpp

+ 5 - 1
src/common/malloc.cpp

@@ -10,7 +10,11 @@
 #include "core.hpp"
 #include "showmsg.hpp"
 
-#define FREED_POINTER 0xdeadbeafL
+#if defined(__64BIT__)
+	#define FREED_POINTER 0xdeadbeafL
+#else
+	#define FREED_POINTER 0x7eadbeafL
+#endif
 
 ////////////// Memory Libraries //////////////////