Commit 2080238b authored by John van Groningen's avatar John van Groningen
Browse files

in lazy record selector offsets for the garbage collector, swap the offsets,

because the code generator swaps the fields in a FILE node
parent 1d250d06
......@@ -3328,6 +3328,14 @@ static void print_result_descriptor_and_offsets (StateS field_state,int a_pos,in
} else
offset2=0;
if (field_state.state_object==FileObj){
/* the code generator stores the fields in a FILE node in reversed order */
int old_offset1;
old_offset1=offset1;
offset1=offset2;
offset2=old_offset1;
}
FPrintF (OutFile, "%s %d %d ",result_descriptor_name,offset1,offset2);
}
}
......
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