ruby-changes:40887
From: ko1 <ko1@a...>
Date: Wed, 9 Dec 2015 00:18:36 +0900 (JST)
Subject: [ruby-changes:40887] ko1:r52966 (trunk): * compile.c (ibf_load_setup): cast to int.
ko1 2015-12-09 00:18:30 +0900 (Wed, 09 Dec 2015) New Revision: 52966 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52966 Log: * compile.c (ibf_load_setup): cast to int. Modified files: trunk/ChangeLog trunk/compile.c Index: ChangeLog =================================================================== --- ChangeLog (revision 52965) +++ ChangeLog (revision 52966) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Dec 9 00:17:49 2015 Koichi Sasada <ko1@a...> + + * compile.c (ibf_load_setup): cast to int. + Wed Dec 9 00:13:09 2015 Koichi Sasada <ko1@a...> * compile.c (ibf_setup_load): rename to ibf_load_setup(). Index: compile.c =================================================================== --- compile.c (revision 52965) +++ compile.c (revision 52966) @@ -8195,7 +8195,7 @@ ibf_load_iseq(const struct ibf_load *loa https://github.com/ruby/ruby/blob/trunk/compile.c#L8195 static void ibf_load_setup(struct ibf_load *load, VALUE loader_obj, VALUE str) { - if (RSTRING_LENINT(str) < sizeof(struct ibf_header)) { + if (RSTRING_LENINT(str) < (int)sizeof(struct ibf_header)) { rb_raise(rb_eRuntimeError, "broken binary format"); } RB_OBJ_WRITE(loader_obj, &load->str, str); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/