update android客户端代码/java/weaving/socket/Wclient.java.

if(item>=0) 
    ret += ((item) << i);
else 
   ret += ((item& 0xFF) << i);
New
dreamsfly 3 years ago committed by Gitee
parent f58a38c28e
commit 027bb7789c

@ -99,7 +99,10 @@ public class Wclient {
int i = 0;
for (byte item : list)
{
ret += ((item& 0xFF) << i);
if(item>=0)
ret += ((item) << i);
else
ret += ((item& 0xFF) << i);
i += 8;
}
return ret;

Loading…
Cancel
Save