зеркало из https://github.com/github/ruby.git
* compile.c (ibf_load_setup): cast to int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d0d0898c0a
Коммит
34cfdd2f67
|
@ -1,3 +1,7 @@
|
|||
Wed Dec 9 00:17:49 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* compile.c (ibf_load_setup): cast to int.
|
||||
|
||||
Wed Dec 9 00:13:09 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* compile.c (ibf_setup_load): rename to ibf_load_setup().
|
||||
|
|
|
@ -8195,7 +8195,7 @@ ibf_load_iseq(const struct ibf_load *load, const rb_iseq_t *index_iseq)
|
|||
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче