Trunk: generator.c:150: warning: unsigned int format, long i

ext/json e$B$G!"e(Brb_raise
e$B$X;XDj$7$F$$$k%U%)!<%^%C%H$,%P%0$C$F$^$9!#e(B

gcc -I. -I…/…/…/…/.ext/include/i386-freebsd6.2
-I…/…/…/…/./include -I…/…/…/…/./ext/json/ext/generator
-DRUBY_EXTCONF_H=“extconf.h” -fPIC -g -O2 -Wall -c generator.c
generator.c: In function mHash_to_json': generator.c:150: warning: unsigned int format, long int arg (arg 3) generator.c: In functionmArray_json_transfrom’:
generator.c:175: warning: unsigned int format, long int arg (arg 3)

Index: ext/json/ext/generator/generator.c

— ext/json/ext/generator/generator.c (e$B%j%S%8%g%se(B 12779)
+++ ext/json/ext/generator/generator.c (e$B:n6H%3%T!<e(B)
@@ -9,7 +9,7 @@
#define check_max_nesting(state, depth) do {

long current_nesting = 1 + depth;

if (state->max_nesting != 0 && current_nesting >
state->max_nesting) \

  •    rb_raise(eNestingError, "nesting of %u is too deep", 
    

current_nesting); \

  •    rb_raise(eNestingError, "nesting of %ld is too deep", 
    

current_nesting);
} while (0);

static VALUE mJSON, mExt, mGenerator, cState, mGeneratorMethods,
mObject,

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:31217] trunk: generator.c:150: warning:
unsigned int format, long int arg (arg 3)”
on Sat, 14 Jul 2007 09:44:54 +0900, pegacorn
[email protected] writes:

|ext/json e$B$G!"e(Brb_raise e$B$X;XDj$7$F$$$k%U%)!<%^%C%H$,%P%0$C$F$^$9!#e(B

e$B$"$j$,$H$&$4$6$$$^$9!#$H$j$3$_$^$9!#e(B