[Bug #887] thread.c: warning: format '%.6ld' expects type 'long int'


#1

Bug #887: thread.c: warning: format ‘%.6ld’ expects type ‘long int’
http://redmine.ruby-lang.org/issues/show/887

e$B5/I<<Te(B: Kazuhiro NISHIYAMA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal

Mac OS
Xe$B$N4D6-$G0J2<$Ne(Bwarninge$B$,=P$F$$$k$N$G!"e(Btv_sece$B$@$1$G$O$J$/e(Btv_usece$B$be(Blonge$B$K%-%c%9%H$7$F$7$^$($PNI$$$N$G$O$J$$$G$7$g$&$+!#e(B

gcc -DRUBY_DEBUG_ENV -O2 -g -Wall -Wformat=2 -Wundef -Wno-parentheses
-pipe -fno-common -I. -I.ext/include/powerpc-darwin9.5.0 -I./include
-I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o thread.o -c
thread.c
thread.c: In function ‘sleep_timeval’:
thread.c:809: warning: format ‘%.6ld’ expects type ‘long int’, but
argument 3 has type ‘__darwin_suseconds_t’
thread.c:809: warning: format ‘%.6ld’ expects type ‘long int’, but
argument 5 has type ‘__darwin_suseconds_t’


#2

e$B%A%1%C%He(B #887 e$B$,99?7$5$l$^$7$?!#e(B (by Yukihiro M.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r20766.

http://redmine.ruby-lang.org/issues/show/887