mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
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:
parent
c5dece0d3a
commit
4dd8a1955e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user