Commit dec32eeb authored by claes's avatar claes

Bugfix in getObjectInfoInt for 16 and 8 bit integer

parent 699383c3
......@@ -317,7 +317,7 @@ JNIEXPORT jobjectArray JNICALL Java_jpwr_rt_Gdh_getObjectRefInfoStringArray
//create a new String[]
jobjectArr = (*env)->NewObjectArray(env, elements, strArrCls, NULL);
printf("size=%d\n", size);
typeid = (pwr_tTypeId) jtypeid;
if ( typeid == 0 || typeid == pwr_eType_String)
{
......@@ -1052,7 +1052,7 @@ JNIEXPORT jobject JNICALL Java_jpwr_rt_Gdh_getObjectInfoInt
jobject return_obj;
jint jsts;
jint jvalue;
pwr_tInt32 value;
pwr_tInt32 value = 0;
char *s;
cdhrInt_id = (*env)->FindClass( env, "jpwr/rt/CdhrInt");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment