From 3e1bb3e9ff2b846c29f980442e1d6d6f519d67f4 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 27 Jul 2005 07:27:19 +0000 Subject: * parse.y (lambda): Perl6 style -> lambda expression. [NEW] [VERY EXPERIMENTAL] * gc.c (id2ref): must not assign pointers to long int. use LONG_LONG instead if SIZEOF_LONG < SIZEOF_VOIDP. [ruby-talk:149645] * ruby.h: use LONG_LONG to simplify the change. [ruby-talk:149645] * dir.c (dir_each): rewinddir(3) before iteration. [ruby-talk:149628] * eval.c (rb_f_throw): replace all '0x%lx' by '%p'. [ruby-talk:149553] * missing/vsnprintf.c (BSD_vfprintf): '%p' need to handle 64bit size pointer. [ruby-talk:149553] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index e505b60ea..d41f3570f 100644 --- a/object.c +++ b/object.c @@ -300,7 +300,7 @@ rb_any_to_s(obj) char *cname = rb_obj_classname(obj); VALUE str; - str = rb_sprintf("#<%s:0x%lx>", cname, obj); + str = rb_sprintf("#<%s:%p>", cname, obj); if (OBJ_TAINTED(obj)) OBJ_TAINT(str); return str; @@ -384,7 +384,7 @@ rb_obj_inspect(obj) char *c; c = rb_obj_classname(obj); - str = rb_sprintf("-<%s:0x%lx", c, obj); + str = rb_sprintf("-<%s:%p", c, obj); return rb_exec_recursive(inspect_obj, obj, str); } return rb_funcall(obj, rb_intern("to_s"), 0, 0); -- cgit