Skip to content

Commit

Permalink
adding missing write barriers
Browse files Browse the repository at this point in the history
  • Loading branch information
lrz committed Jun 15, 2011
1 parent 534ffd0 commit 39bb4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rational.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ nurat_s_new_internal(VALUE klass, VALUE num, VALUE den)
NEWOBJ(obj, struct RRational);
OBJSETUP(obj, klass, T_RATIONAL);

obj->num = num;
obj->den = den;
GC_WB(&obj->num, num);
GC_WB(&obj->den, den);

return (VALUE)obj;
}
Expand Down

0 comments on commit 39bb4bd

Please sign in to comment.