SQL2JDBC - 2022-08-08

Hi, the correct way:
protected static short encodeUnsigned(int positive)
{
if (positive<32768) {
return (short)positive;
} else {
return (short)(-(65536-positive));
}
}