ruby-changes:18501
From: akr <ko1@a...>
Date: Wed, 12 Jan 2011 19:44:20 +0900 (JST)
Subject: [ruby-changes:18501] Ruby:r30524 (trunk): * vm_dump.c: parenthesize macro arguments.
akr 2011-01-12 19:37:32 +0900 (Wed, 12 Jan 2011) New Revision: 30524 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30524 Log: * vm_dump.c: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/vm_dump.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30523) +++ ChangeLog (revision 30524) @@ -1,3 +1,7 @@ +Wed Jan 12 19:37:10 2011 Tanaka Akira <akr@f...> + + * vm_dump.c: parenthesize macro arguments. + Wed Jan 12 19:28:23 2011 Tanaka Akira <akr@f...> * vm.c (thread_free): reset ruby_current_thread if it points the Index: vm_dump.c =================================================================== --- vm_dump.c (revision 30523) +++ vm_dump.c (revision 30524) @@ -16,7 +16,7 @@ #define MAX_POSBUF 128 #define VM_CFP_CNT(th, cfp) \ - ((rb_control_frame_t *)(th->stack + th->stack_size) - (rb_control_frame_t *)(cfp)) + ((rb_control_frame_t *)((th)->stack + (th)->stack_size) - (rb_control_frame_t *)(cfp)) static void control_frame_dump(rb_thread_t *th, rb_control_frame_t *cfp) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/