From 9f49a2429ed47f6977fce7caeec4489000262dad Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 16 Jun 2019 14:25:09 +0000 Subject: [PATCH] .cosmetics git-svn-id: svn://ultimatepp.org/upp/trunk@13401 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Util.cpp | 4 ++++ uppsrc/Core/lheap.cpp | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) 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;