On Mon, 15 Jul 2024 12:28:51 GMT, Chen Liang <li...@openjdk.org> wrote:
> Indeed, for some reason I thought the range of short is -256 to 255 instead > of -65536 to 65535 Yeah, I thought something like this was going on; it would be a smart way to leverage that negative side in two-complement form is one value larger. But, `byte` is `-128...127`, and `short` is `-32768..32767`. So current thing would not even work if it did not support `256` as the value :) ------------- PR Comment: https://git.openjdk.org/jdk/pull/20178#issuecomment-2228531319