git-svn-id: svn://db.shs.com.ru/pip@735 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2019-02-08 15:10:45 +00:00
parent d17e6f8189
commit ef5b299d4e

View File

@@ -449,13 +449,13 @@ private:
pid_size = new_size;
size_t as = asize(pid_start + new_size);
if (as != pid_rsize) {
printf("(%p) realloc %d -> %d (%p)\n", this, pid_rsize*sizeof(T), as*sizeof(T), 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)));
assert(p_d);
pid_data = p_d;
pid_rsize = as;
printf("(%p) realloc done (%p)\n", this, pid_data);
//printf("(%p) realloc done (%p)\n", this, pid_data);
}
} else {
size_t as;