.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@13401 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-06-16 14:25:09 +00:00
parent d4388c00b8
commit 9f49a2429e
2 changed files with 4 additions and 1 deletions

View file

@ -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);

View file

@ -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;