summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 819b3526da..a368605965 100644
--- a/struct.c
+++ b/struct.c
@@ -167,7 +167,7 @@ Fstruct_aref(s, idx)
if (TYPE(idx) == T_STRING)
return struct_find(rb_intern(RSTRING(idx)->ptr));
-
+
i = NUM2INT(idx);
if (s->len <= i)
Fail("offset %d too large for struct(size:%d)", i, s->len);