summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-30 10:04:51 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-30 10:04:51 (GMT)
commit2a58eebd8f3b0f359c25c5e20be3d8045aa1651a (patch)
tree3b8e41e8ec23c0489a2c3b0ca8d78607d21bb75f /.gdbinit
parentc11f63669a668c4cc742656d0d08b8fb24764717 (diff)
* .gdbinit (rp): show negative fixnum correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gdbinit b/.gdbinit
index 728e739..779d308 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -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