Browse Source

debug assert

master
despair 5 years ago
parent
commit
fb64d122fe
  1. 2
      src/netrunner.h

2
src/netrunner.h

@ -51,7 +51,7 @@ namespace ntr{ @@ -51,7 +51,7 @@ namespace ntr{
#ifdef DEBUG_TLSF_CPP
// print message and allocate memory with 2LSF
std::cerr << "allocate " << size << " element(s)" << " of size " << sizeof(T) << std::endl;
ptr ret = (ptr)(tlsf_malloc(size * sizeof(T)));
pointer ret = static_cast<pointer>(tlsf_malloc(size * sizeof(T)));
std::cerr << " allocated at: " << (void*)ret << std::endl;
#else
pointer ret = static_cast<pointer>(tlsf_malloc(size * sizeof(T)));

Loading…
Cancel
Save