diff --git a/uppsrc/Core/Util.cpp b/uppsrc/Core/Util.cpp index 68c449850..32ce0ffc2 100644 --- a/uppsrc/Core/Util.cpp +++ b/uppsrc/Core/Util.cpp @@ -142,7 +142,11 @@ void AssertFailed(const char *file, int line, const char *cond) if(s_assert_hook) (*s_assert_hook)(s); RLOG("****************** ASSERT FAILED: " << s << "\n"); +#ifdef PLATFORM_POSIX + RLOG("LastErrorMessage: " << strerror(errno)); // do not translate +#else RLOG("LastErrorMessage: " << GetLastErrorMessage()); +#endif PanicMessageBox("Fatal error", s); diff --git a/uppsrc/Core/lheap.cpp b/uppsrc/Core/lheap.cpp index 61857c0a5..021de1b40 100644 --- a/uppsrc/Core/lheap.cpp +++ b/uppsrc/Core/lheap.cpp @@ -177,7 +177,6 @@ bool Heap::TryRealloc(void *ptr, size_t& newsize) LTIMING("Big Free"); DLink *d = (DLink *)h - 1; - BlkPrefix *h = (BlkPrefix *)(d + 1); size_t count = (newsize + sizeof(DLink) + sizeof(BlkPrefix) + 4095) >> 12;