diff options
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -4249,11 +4249,6 @@ rb_str_ord(VALUE s) { int c; - if (RSTRING_LEN(s) != 1) { - rb_raise(rb_eTypeError, - "expected a character, but string of size %ld given", - RSTRING_LEN(s)); - } c = RSTRING_PTR(s)[0] & 0xff; return INT2NUM(c); } |