diff --git a/DCCTimerGiga.cpp b/DCCTimerGiga.cpp index ae67671..5afc3ad 100644 --- a/DCCTimerGiga.cpp +++ b/DCCTimerGiga.cpp @@ -300,8 +300,8 @@ extern "C" char* sbrk(int incr); int DCCTimer::freeMemory() { char top; - - return (int)(&top - reinterpret_cast(sbrk(0))); + unsigned int tmp = (unsigned int)(&top - reinterpret_cast(sbrk(0))); + return (int)(tmp / 1000); } void DCCTimer::reset() {