aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/string.c b/string.c
index 17e3927812..5ce8d73e30 100644
--- a/string.c
+++ b/string.c
@@ -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);
}