summaryrefslogtreecommitdiff
path: root/include/ruby/internal/arithmetic/long_long.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/internal/arithmetic/long_long.h')
-rw-r--r--include/ruby/internal/arithmetic/long_long.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/arithmetic/long_long.h b/include/ruby/internal/arithmetic/long_long.h
index 65dec8729d..aab455c830 100644
--- a/include/ruby/internal/arithmetic/long_long.h
+++ b/include/ruby/internal/arithmetic/long_long.h
@@ -127,7 +127,7 @@ static inline unsigned LONG_LONG
rb_num2ull_inline(VALUE x)
{
if (RB_FIXNUM_P(x))
- return RB_FIX2LONG(x);
+ return RBIMPL_CAST((unsigned LONG_LONG)RB_FIX2LONG(x));
else
return rb_num2ull(x);
}