diff --git a/src_main/containers/pideque.h b/src_main/containers/pideque.h index c991748b..917c2da1 100755 --- a/src_main/containers/pideque.h +++ b/src_main/containers/pideque.h @@ -449,10 +449,10 @@ private: pid_size = new_size; size_t as = asize(pid_start + new_size); if (as != pid_rsize) { - if(!this) printf("(%p) realloc %d -> %d (%p)\n", this, pid_rsize, as, pid_data); + //printf("(%p) realloc %d -> %d (%p)\n", this, pid_rsize, as, pid_data); PIINTROSPECTION_CONTAINER_ALLOC((as-pid_rsize)*sizeof(T)) T * p_d = (T*)(realloc((void*)(pid_data), as*sizeof(T))); - if(!p_d) printf("(%p) realloc (%d)%d -> %d (%p) %d\n", this, (int)pid_start, (int)pid_rsize, (int)as, pid_data, (int)sizeof(T)); + if(!p_d) printf("(%p) realloc (%d)%d -> %d (%p) %d\n", this, (int)pid_start, (int)pid_rsize, (int)as, pid_data, new_size); assert(p_d); pid_data = p_d; pid_rsize = as; diff --git a/src_main/io_devices/pidir.cpp b/src_main/io_devices/pidir.cpp index eabbd80e..c9172da7 100755 --- a/src_main/io_devices/pidir.cpp +++ b/src_main/io_devices/pidir.cpp @@ -386,7 +386,9 @@ PIDir PIDir::current() { PIDir PIDir::home() { +#ifndef ESP_PLATFORM char * rc = 0; +#endif #ifdef WINDOWS rc = new char[1024]; memset(rc, 0, 1024);