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 c0cef33eb7..b85f7c035e 100644
--- a/struct.c
+++ b/struct.c
@@ -1202,7 +1202,7 @@ rb_struct_hash(VALUE s)
h = rb_hash_uint(h, NUM2LONG(n));
}
h = rb_hash_end(h);
- return INT2FIX(h);
+ return ST2FIX(h);
}
static VALUE