mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* compile.c (iseq_ibf_dump): fix for clang type checker.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
23124ffbe8
commit
b8574cdcff
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Dec 8 23:05:47 2015 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* compile.c (iseq_ibf_dump): fix for clang type checker.
|
||||||
|
|
||||||
Tue Dec 8 23:04:02 2015 Koichi Sasada <ko1@atdot.net>
|
Tue Dec 8 23:04:02 2015 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* iseq.c (iseq_s_load): fix mysterious bug.
|
* iseq.c (iseq_s_load): fix mysterious bug.
|
||||||
|
|
|
@ -8062,7 +8062,7 @@ iseq_ibf_dump(const rb_iseq_t *iseq, VALUE opt)
|
||||||
|
|
||||||
if (RTEST(opt)) {
|
if (RTEST(opt)) {
|
||||||
VALUE opt_str = rb_check_string_type(opt);
|
VALUE opt_str = rb_check_string_type(opt);
|
||||||
header.extra_size = RSTRING_LEN(opt_str) + 1;
|
header.extra_size = (unsigned int)RSTRING_LEN(opt_str) + 1;
|
||||||
ibf_dump_write(&dump, RSTRING_PTR(opt_str), header.extra_size);
|
ibf_dump_write(&dump, RSTRING_PTR(opt_str), header.extra_size);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue