* string.c (rb_str_sum): should use bignums when bits is greater
than or equals to sizeof(long)*CHAR_BITS. [ruby-dev:24395] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
779f3d6d11
commit
77636d0364
@ -1,5 +1,11 @@
|
||||
Sat Oct 2 00:42:20 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_sum): should use bignums when bits is greater
|
||||
than or equals to sizeof(long)*CHAR_BITS. [ruby-dev:24395]
|
||||
|
||||
* eval.c (specific_eval): defer pointer retrieval to prevent
|
||||
unsafe sourcefile string modification. [ruby-dev:24382]
|
||||
|
||||
* string.c (rb_str_sum): wrong cast caused wrong result.
|
||||
[ruby-dev:24385]
|
||||
|
||||
|
2
eval.c
2
eval.c
@ -6322,10 +6322,10 @@ specific_eval(argc, argv, klass, self)
|
||||
rb_id2name(ruby_frame->last_func),
|
||||
rb_id2name(ruby_frame->last_func));
|
||||
}
|
||||
if (argc > 2) line = NUM2INT(argv[2]);
|
||||
if (argc > 1) {
|
||||
file = StringValuePtr(argv[1]);
|
||||
}
|
||||
if (argc > 2) line = NUM2INT(argv[2]);
|
||||
}
|
||||
return eval_under(klass, self, argv[0], file, line);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user