Java - unsigned long long marshalling improvements for negative numbers

Affects marshalling of negative numbers from Java to C only.
A cast to signed long long in the C layer will now result in the expected value.

Closes #623.
This commit is contained in:
William S Fulton 2016-03-31 18:42:08 +01:00
commit a15bbbaee5
5 changed files with 90 additions and 14 deletions

View file

@ -38,3 +38,9 @@ unsigned long long ull;
#define lconst5 987654321LL
#define lconst6 987654321ULL
%inline %{
long long UnsignedToSigned(unsigned long long ull) {
return (long long)ull;
}
%}