Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
1
-
Client 2016-04-20
Description
Ruby 2.2 changes rb_num2long to return a long. That's a dangerous operation to use in a cross-platform 64-bit application, because on Windows it'll be a 32-bit int and on most other platforms a 64-bit int.
Change to force use of rb_num2ll and rb_num2ull instead to avoid issues with long return values (and the inconsistency between Ruby 2.1 and 2.2).