Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby
All Projects
Ruby
Overview
Activity
Roadmap
Issues
Repository
Like
«
Previous
|
Next
»
Revision 87877eb0
Added by
akr (Akira Tanaka)
over 12 years
ago
ID
87877eb04f5376b651e501cd7aa451c870df7411
Parent
f4eeca1d
Child
b5550361
ext/zlib/zlib.c (rb_gzfile_set_mtime): Use NUM2UINT.
The old logic doesn't work well on LP64 platforms as:
.. -2
63-1 => error,
-2
63 .. -2
62-1 => success,
-2
62 .. -2
31-1 => error,
-2
31 .. 2
31-1 => success,
2
31 .. 2
62-1 => error,
2
62 .. 2
64-1 => success,
2
64 .. => error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Loading...
The old logic doesn't work well on LP64 platforms as:
.. -263-1 => error,
-263 .. -262-1 => success,
-262 .. -231-1 => error,
-231 .. 231-1 => success,
231 .. 262-1 => error,
262 .. 264-1 => success,
264 .. => error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e