Browse Source

Fixed compiler warnings in malloc.cpp on x86

Fixes #3248

Thanks to @laziem
Lemongrass3110 6 years ago
parent
commit
a4336fd8ae
1 changed files with 5 additions and 1 deletions
  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 //////////////////