ruby-changes:11473
From: akr <ko1@a...>
Date: Mon, 30 Mar 2009 19:05:20 +0900 (JST)
Subject: [ruby-changes:11473] Ruby:r23098 (trunk): * .gdbinit (rp): show negative fixnum correctly.
akr 2009-03-30 19:04:51 +0900 (Mon, 30 Mar 2009) New Revision: 23098 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23098 Log: * .gdbinit (rp): show negative fixnum correctly. Modified files: trunk/.gdbinit trunk/ChangeLog Index: .gdbinit =================================================================== --- .gdbinit (revision 23097) +++ .gdbinit (revision 23098) @@ -1,6 +1,6 @@ define rp if (VALUE)$arg0 & RUBY_FIXNUM_FLAG - printf "FIXNUM: %ld\n", $arg0 >> 1 + printf "FIXNUM: %ld\n", (long)$arg0 >> 1 else if ((VALUE)$arg0 & ~(~(VALUE)0<<RUBY_SPECIAL_SHIFT)) == RUBY_SYMBOL_FLAG printf "SYMBOL(%ld)\n", $arg0 >> RUBY_SPECIAL_SHIFT Index: ChangeLog =================================================================== --- ChangeLog (revision 23097) +++ ChangeLog (revision 23098) @@ -1,3 +1,7 @@ +Mon Mar 30 19:04:25 2009 Tanaka Akira <akr@f...> + + * .gdbinit (rp): show negative fixnum correctly. + Mon Mar 30 12:12:46 2009 Nobuyoshi Nakada <nobu@r...> * vm_eval.c (eval_string_with_cref): replaces the message if -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/