Commit cc8d8fc7 authored by Kenton Varda's avatar Kenton Varda

Fix test bug on 32-bit arch.

parent 0fe8598c
......@@ -251,7 +251,7 @@ struct UnionState {
UnionState(std::initializer_list<uint> discriminants, int dataOffset)
: dataOffset(dataOffset) {
memcpy(this->discriminants, discriminants.begin(), sizeof(discriminants));
memcpy(this->discriminants, discriminants.begin(), sizeof(this->discriminants));
}
bool operator==(const UnionState& other) const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment