Browse Source

Fixed compiler warnings in malloc.cpp on x86

Fixes #3248

Thanks to @laziem
Lemongrass3110 6 năm trước cách đây
mục cha
commit
a4336fd8ae
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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 //////////////////