From a2868ff65166b27acbbda4af1b9df84ed3171541 Mon Sep 17 00:00:00 2001 From: knu Date: Tue, 29 Oct 2002 21:35:28 +0000 Subject: * eval.c, file.c, gc.c, io.c, object.c, ruby.c, ruby.h, struct.c, ext/socket/socket.c: differentiate long and int; use proper printf type specifiers and do casts where appropriate. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object.c') diff --git a/object.c b/object.c index 6f36ec7e13..e826cb9f63 100644 --- a/object.c +++ b/object.c @@ -776,7 +776,7 @@ rb_to_id(name) case T_FIXNUM: id = FIX2LONG(name); if (!rb_id2name(id)) { - rb_raise(rb_eArgError, "%d is not a symbol", id); + rb_raise(rb_eArgError, "%ld is not a symbol", id); } break; case T_SYMBOL: -- cgit v1.2.3