From acc2953f6de97b9ebff9e0f28ac75ffe00e4a226 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Wed, 9 Mar 2016 18:42:33 +0100 Subject: [PATCH] Properly skip 32bit versions of operator new. --- accumulatedtracedata.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/accumulatedtracedata.cpp b/accumulatedtracedata.cpp index fcf81e6..b150183 100644 --- a/accumulatedtracedata.cpp +++ b/accumulatedtracedata.cpp @@ -136,12 +136,16 @@ bool AccumulatedTraceData::read(istream& in) LineReader reader; uint64_t timeStamp = 0; - vector opNewStrIndices; - opNewStrIndices.reserve(16); vector opNewStrings = { + // 64 bit "operator new(unsigned long)", - "operator new[](unsigned long)" + "operator new[](unsigned long)", + // 32 bit + "operator new(unsigned int)", + "operator new[](unsigned int)", }; + vector opNewStrIndices; + opNewStrIndices.reserve(opNewStrings.size()); vector stopStrings = { "main", -- 2.7.4