From ed4e46afec56550b09b396392cb5c682f62fb95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Fri, 8 Feb 2019 15:27:07 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@739 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/containers/pideque.h | 4 ++-- src_main/io_devices/pidir.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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);