Project

General

Profile

Actions

Bug #4789

closed

rb_str_bytesize() should use LONG2NUM()

Added by now (Nikolai Weibull) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
trunk
Backport:
[ruby-core:36511]

Description

RSTRING_LEN() is a long, so LONG2NUM() should be used, not INT2NUM().


Files

rb_str_bytesize.patch (273 Bytes) rb_str_bytesize.patch now (Nikolai Weibull), 05/27/2011 11:39 PM
Actions #1

Updated by kosaki (Motohiro KOSAKI) almost 13 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r31756.
Nikolai, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • string.c (rb_str_bytesize): rb_str_bytesize() should use LONG2NUM().
    Patch by Nikolai Weibull. [Bug #4789] [ruby-core:36511]

Updated by kosaki (Motohiro KOSAKI) almost 13 years ago

Indeed. I've commited this.

Thank you!

Actions

Also available in: Atom PDF

Like0
Like0Like0