diff options
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2964,9 +2964,9 @@ rb_str_hash_m(VALUE str) { st_index_t hval = rb_str_hash(str); #if SIZEOF_LONG == SIZEOF_VOIDP - return ULONG2NUM(hval); + return LONG2FIX((long)hval); #elif SIZEOF_LONG_LONG == SIZEOF_VOIDP - return ULL2NUM(hval); + return LL2NUM((LONG_LONG)hval); #else # error unsupported platform #endif |