Made realloc argument clearer
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@22 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
6d27c9c0ce
commit
b1b73884a5
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ namespace Loki
|
||||||
|
|
||||||
TrackerArray pNewArray = static_cast<TrackerArray>(
|
TrackerArray pNewArray = static_cast<TrackerArray>(
|
||||||
std::realloc(pTrackerArray,
|
std::realloc(pTrackerArray,
|
||||||
sizeof(T) * (elements + 1)));
|
sizeof(*pTrackerArray) * (elements + 1)));
|
||||||
if (!pNewArray) throw std::bad_alloc();
|
if (!pNewArray) throw std::bad_alloc();
|
||||||
|
|
||||||
// Delayed assignment for exception safety
|
// Delayed assignment for exception safety
|
||||||
|
|
Loading…
Add table
Reference in a new issue