Fix long long typemaps so that they can be applied to __int64 and other equivalents
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9223 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b716a0a0c3
commit
0d30f52e97
2 changed files with 6 additions and 6 deletions
|
|
@ -267,7 +267,7 @@
|
|||
sz = JCALL1(GetArrayLength, jenv, ba);
|
||||
$1 = 0;
|
||||
for(i=0; i<sz; i++) {
|
||||
$1 = ($1 << 8) | (unsigned long long)(unsigned char)bae[i];
|
||||
$1 = ($1 << 8) | ($1_type)(unsigned char)bae[i];
|
||||
}
|
||||
JCALL3(ReleaseByteArrayElements, jenv, ba, bae, 0);
|
||||
}
|
||||
|
|
@ -291,7 +291,7 @@
|
|||
sz = JCALL1(GetArrayLength, jenv, ba);
|
||||
$1 = 0;
|
||||
for(i=0; i<sz; i++) {
|
||||
$1 = ($1 << 8) | (unsigned long long)(unsigned char)bae[i];
|
||||
$1 = ($1 << 8) | ($1_type)(unsigned char)bae[i];
|
||||
}
|
||||
JCALL3(ReleaseByteArrayElements, jenv, ba, bae, 0);
|
||||
}
|
||||
|
|
@ -496,7 +496,7 @@
|
|||
$1 = &temp;
|
||||
temp = 0;
|
||||
for(i=0; i<sz; i++) {
|
||||
temp = (temp << 8) | (unsigned long long)(unsigned char)bae[i];
|
||||
temp = (temp << 8) | ($*1_ltype)(unsigned char)bae[i];
|
||||
}
|
||||
JCALL3(ReleaseByteArrayElements, jenv, ba, bae, 0);
|
||||
}
|
||||
|
|
@ -522,7 +522,7 @@
|
|||
$1 = &temp;
|
||||
temp = 0;
|
||||
for(i=0; i<sz; i++) {
|
||||
temp = (temp << 8) | (unsigned long long)(unsigned char)bae[i];
|
||||
temp = (temp << 8) | ($*1_ltype)(unsigned char)bae[i];
|
||||
}
|
||||
JCALL3(ReleaseByteArrayElements, jenv, ba, bae, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue