summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
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