mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@13401 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
d4388c00b8
commit
9f49a2429e
2 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue