b******e 发帖数: 13 | 1 I create a simple jni function taking a jint argument, then print that value
out. But when i call this function in java passing a java int variable to
it, it prints out some random number. However if i change jint to jdouble
and pass java double variable, it works fine. Any ideas why? Thanks. | F****n 发帖数: 3271 | 2 Most likely, you made some type cast mistakes in your C/C++ code.
value
【在 b******e 的大作中提到】 : I create a simple jni function taking a jint argument, then print that value : out. But when i call this function in java passing a java int variable to : it, it prints out some random number. However if i change jint to jdouble : and pass java double variable, it works fine. Any ideas why? Thanks.
|
|