summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gdbinit2
-rw-r--r--ChangeLog4
2 files changed, 5 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
diff --git a/ChangeLog b/ChangeLog
index 5697dba..230f268 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Mar 30 19:04:25 2009 Tanaka Akira <akr@fsij.org>
+
+ * .gdbinit (rp): show negative fixnum correctly.
+
Mon Mar 30 12:12:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_eval.c (eval_string_with_cref): replaces the message if