Browse files

oops

  • Loading branch information...
1 parent 9fa66d1 commit f02153c1ad47f6957967f78f7f67f93b75ad3c93 @drichert committed Nov 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fs1r/base.rb
View
2 lib/fs1r/base.rb
@@ -33,7 +33,7 @@ def byte_pair(n)
raise "Input must be 16-bit integer"
end
- n = "#{0 * (16 = n.to_s(2).length)}#{n.to_s(2)}"
+ n = "#{0 * (16 - n.to_s(2).length)}#{n.to_s(2)}"
[n[0..7].to_i(2), n[8..15].to_i(2)]
end

0 comments on commit f02153c

Please sign in to comment.