Preferences

Why would signedness be a problem? If you reinterpret a non-negative two's complement integer as unsigned, you get the same value.

lelanthran
> Why would signedness be a problem? If you reinterpret a non-negative two's complement integer as unsigned, you get the same value.

It won't be a problem if the string being passed from Java to C is const. It will be if the C code increases the size of the string enough to set the highest bit. Then Java will be looking at negative length strings.

This item has no comments currently.