Skip to content

Commit fa57b70

Browse files
committed
attempt to fix C2131
1 parent 385f38c commit fa57b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/profiler.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Local<Array> GetLineNumberTimeProfileChildren(const CpuProfileNode* parent,
137137
unsigned int hitLineCount = node->GetHitLineCount();
138138
unsigned int hitCount = node->GetHitCount();
139139
if (hitLineCount > 0) {
140-
CpuProfileNode::LineTick entries[hitLineCount];
140+
CpuProfileNode::LineTick* entries = new CpuProfileNode::LineTick[hitLineCount];
141141
node->GetLineTicks(&entries[0], hitLineCount);
142142
children = Nan::New<Array>(count + hitLineCount);
143143
for (const CpuProfileNode::LineTick entry : entries) {

0 commit comments

Comments
 (0)