From ed54d31d6c75cf8021efe7a50cd8ef7c10c5cfb2 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 11 Oct 2005 12:30:48 +0000 Subject: * array.c, enum.c, eval.c, util.c: safer function pointer usage. fixed: [ruby-core:06143] * util.h (qsort): removed the definition incompatible to ANSI. fixed: [ruby-core:06147] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index a69d8369d..0c9406344 100644 --- a/file.c +++ b/file.c @@ -2695,8 +2695,9 @@ static VALUE separator; static VALUE rb_file_join(VALUE ary, VALUE sep); static VALUE -file_inspect_join(VALUE ary, VALUE *arg, int recur) +file_inspect_join(VALUE ary, VALUE argp, int recur) { + VALUE *arg = (VALUE *)argp; if (recur) return rb_str_new2("[...]"); return rb_file_join(arg[0], arg[1]); } -- cgit