Permalink
Browse files

Update to deal with seg fault from Ruby 1.9.2-p290 and below running …

…on OSX Lion.


See the upstream branch's pull request #22 for more details.
openid#22
  • Loading branch information...
1 parent 8e979da commit 5363931512eb6d9d0c6bfc308f8cb7d928d9ef10 @jwang committed Sep 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/openid/dh.rb
View
@@ -57,7 +57,7 @@ def DiffieHellman.strxor(s, t)
end
if String.method_defined? :bytes
- s.bytes.zip(t.bytes).map{|sb,tb| sb^tb}.pack('C*')
+ s.bytes.to_a.zip(t.bytes.to_a).map{|sb,tb| sb^tb}.pack('C*')
else
indices = 0...(s.length)
chrs = indices.collect {|i| (s[i]^t[i]).chr}

0 comments on commit 5363931

Please sign in to comment.