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:
William S Fulton 2006-07-24 20:37:10 +00:00
commit 0d30f52e97
2 changed files with 6 additions and 6 deletions

View file

@ -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);
}