Bug 887906 - use the correct ctypes types for long and short function parameters in JNI.jsm; r=wesj

long might be 32-bit or 64-bit, depending on the architecture.  short is usually
16 bits, but we might as well specify a 16-bit type directly.
This commit is contained in:
Nathan Froyd 2013-06-27 14:02:19 -04:00
parent c5dece0d3a
commit 4dd8a1955e

View File

@ -33,8 +33,8 @@ JNI.prototype = {
case "D": return ctypes.double;
case "F": return ctypes.float;
case "I": return ctypes.int32_t;
case "J": return ctypes.long;
case "S": return ctypes.short;
case "J": return ctypes.int64_t;
case "S": return ctypes.int16_t;
case "V": return ctypes.void_t;
case "Z": return ctypes.bool;
default: return this.types.jobject