Fixed wrong byte ordering

This commit is contained in:
Ziver Koc 2016-04-15 17:56:13 +02:00
parent 0495d3289b
commit 40fbbe1012
2 changed files with 7 additions and 7 deletions

View file

@ -60,10 +60,10 @@ public class Converter {
*/
public static byte[] toBytes(int num){
return new byte[]{
(byte)((num >> 24)& 0xff),
(byte)((num >> 16)& 0xff),
(byte)(num & 0xff),
(byte)((num >> 8)& 0xff),
(byte)(num & 0xff)};
(byte)((num >> 16)& 0xff),
(byte)((num >> 24)& 0xff)};
}
/**