-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use LONG2NUM and NUM2LONG to support all values of the 'long' type (#295
) Some values of the 'long' type cannot be represented as a Fixnum, e.g. the curl constant CURLAUTH_ANY is a Bignum. In order to support such values, LONG2NUM and NUM2LONG must be used. INT2FIX, FIX2INT, FIX2LONG and LONG2FIX must not be used (except in some special cases), because the value may get truncated. The performance impact of this change is very small and negligible. Setting 'http_auth_types = :any' now really works.
- Loading branch information
Showing
5 changed files
with
97 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.