a raw access to the heap field slipped through somehow, fixing that (#483)

This commit is contained in:
Jeremy G. Siek
2021-04-21 19:11:13 -04:00
committed by GitHub
parent e89b8daad7
commit 928b92a428
+2 -2
View File
@@ -375,8 +375,8 @@ static auto FieldsValueEqual(VarAddresses* ts1, VarAddresses* ts2, int line_num)
if (iter == ts2->end()) {
return false;
}
if (!ValueEqual(state->heap[address], state->heap[iter->second],
line_num)) {
if (!ValueEqual(state->ReadFromMemory(address, line_num),
state->ReadFromMemory(iter->second, line_num), line_num)) {
return false;
}
}