소스 검색

Fixed compiler warnings in malloc.cpp on x86

Fixes #3248

Thanks to @laziem
Lemongrass3110 6 년 전
부모
커밋
a4336fd8ae
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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 //////////////////