Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion de4dot.blocks/cflow/InstructionEmulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,10 @@ void Emulate_Newarr(Instruction instr)
if (val.IsInt32())
{
Int32Value arrSize = (Int32Value)val;
List<Value> arr = new List<Value>(new Value[arrSize.Value]);
List<Value> arr = new List<Value>(arrSize.Value);
for (int i = 0; i < arrSize.Value; i++) {
arr.Add(new UnknownValue());
}
valueStack.Push(new ObjectValue(arr));
}
else
Expand Down
Loading