Trying to patch up some junky code in the management server

This commit is contained in:
ceikry 2021-08-10 00:02:47 -05:00
parent 7859c87565
commit 8efd877a11
8 changed files with 18 additions and 22 deletions

View file

@ -547,7 +547,7 @@ public class IoBuffer {
long second = getIntB();
if (second < 0)
second = second & 0xffffffffL;
return (first << -41780448) + second;
return (first << 32) + second;
}
/**
@ -567,7 +567,7 @@ public class IoBuffer {
if (peek <= Short.MAX_VALUE) {
return buf.getShort() & 0xFFFF;
}
return (buf.getInt() & 0xFFFFFFFF) - 32768;
return buf.getInt() - 32768;
}
/**