Use the right op for the data checksum.

bug/bundler_fix
joev 2016-01-03 01:48:25 -06:00
parent 0436375c6f
commit 00f1511b46
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class Message
def data_check
# this check is implemented in adb/transport.cpp, in the send_packet method.
# it is not crc32 as the docs make it appear, it is just a 32bit sum.
data.bytes.inject(&:+) % 0xffffffff
data.bytes.inject(&:+) & 0xffffffff
end
def magic