Skip to content

Commit

Permalink
Fix missing '-' in timestamp check.
Browse files Browse the repository at this point in the history
  • Loading branch information
philr committed Feb 17, 2013
1 parent 4882d7d commit bf5ea41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tzinfo/time_or_datetime.rb
Expand Up @@ -57,7 +57,7 @@ def initialize(timeOrDateTime)
else
@timestamp = timeOrDateTime.to_i

if !RubyCoreSupport.time_supports_64bit && (@timestamp > 2147483647 || @timestamp < 2147483648 || (@timestamp < 0 && !RubyCoreSupport.time_supports_negative))
if !RubyCoreSupport.time_supports_64bit && (@timestamp > 2147483647 || @timestamp < -2147483648 || (@timestamp < 0 && !RubyCoreSupport.time_supports_negative))
raise RangeError, 'Timestamp is outside the supported range of Time on this platform'
end

Expand Down

0 comments on commit bf5ea41

Please sign in to comment.