author | KUDr |
Mon, 26 Mar 2007 20:47:18 +0000 | |
branch | cpp_gui |
changeset 6299 | 7892983044e6 |
parent 6298 | c30fe89622df |
child 6300 | 1f0d2abac815 |
src/misc/blob.hpp | file | annotate | diff | comparison | revisions |
--- a/src/misc/blob.hpp Sun Mar 11 16:31:18 2007 +0000 +++ b/src/misc/blob.hpp Mon Mar 26 20:47:18 2007 +0000 @@ -264,7 +264,8 @@ FORCEINLINE Titem* GrowSizeC(int num_items) { Titem* pI = GrowSizeNC(num_items); - for (int i = num_items; i > 0; i--, pI++) new (pI) Titem(); + for (int i = 0; i < num_items; ++i) new (&pI[i]) Titem(); + return pI; } /** Destroy given number of items and reduce the Blob's data size */ FORCEINLINE void ReduceSize(int num_items)