ruby-changes:15281
From: nobu <ko1@a...>
Date: Fri, 2 Apr 2010 07:00:58 +0900 (JST)
Subject: [ruby-changes:15281] Ruby:r27166 (trunk): * ext/dl/cptr.c (rb_dlptr_inspect): fix format specifiers.
nobu 2010-04-02 07:00:42 +0900 (Fri, 02 Apr 2010) New Revision: 27166 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27166 Log: * ext/dl/cptr.c (rb_dlptr_inspect): fix format specifiers. Modified files: trunk/ChangeLog trunk/ext/dl/cptr.c Index: ChangeLog =================================================================== --- ChangeLog (revision 27165) +++ ChangeLog (revision 27166) @@ -1,3 +1,7 @@ +Fri Apr 2 07:00:28 2010 Nobuyoshi Nakada <nobu@r...> + + * ext/dl/cptr.c (rb_dlptr_inspect): fix format specifiers. + Fri Apr 2 05:38:17 2010 Nobuyoshi Nakada <nobu@r...> * include/ruby/ruby.h (InitVM): calls per-VM initialization in Index: ext/dl/cptr.c =================================================================== --- ext/dl/cptr.c (revision 27165) +++ ext/dl/cptr.c (revision 27166) @@ -388,7 +388,7 @@ char str[1024]; TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data); - snprintf(str, 1023, "#<%s:%p ptr=%#lx size=%ld free=%#lx>", + snprintf(str, 1023, "#<%s:%p ptr=%p size=%ld free=%p>", rb_class2name(CLASS_OF(self)), data, data->ptr, data->size, data->free); return rb_str_new2(str); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/