@@ -223,7 +223,7 @@ JNIEXPORT jint JNICALL Java_ml_dmlc_mxnet_LibInfo_mxImperativeInvoke
223
223
jclass listClass = env->FindClass (" scala/collection/mutable/ArrayBuffer" );
224
224
jmethodID listAppend = env->GetMethodID (listClass, " $plus$eq" ,
225
225
" (Ljava/lang/Object;)Lscala/collection/mutable/ArrayBuffer;" );
226
- for (size_t i = 0 ; i < numOutputs; ++i) {
226
+ for (int i = 0 ; i < numOutputs; ++i) {
227
227
env->CallObjectMethod (outputs, listAppend,
228
228
env->NewObject (longCls, longConst,
229
229
reinterpret_cast <uint64_t >(cOutputs[i])));
@@ -1328,7 +1328,7 @@ JNIEXPORT jint JNICALL Java_ml_dmlc_mxnet_LibInfo_mxSymbolInferType
1328
1328
1329
1329
// release allocated memory
1330
1330
if (jkeys != NULL ) {
1331
- for (size_t i = 0 ; i < numArgs; i++) {
1331
+ for (int i = 0 ; i < numArgs; i++) {
1332
1332
jstring jkey = reinterpret_cast <jstring>(env->GetObjectArrayElement (jkeys, i));
1333
1333
env->ReleaseStringUTFChars (jkey, keys[i]);
1334
1334
env->DeleteLocalRef (jkey);
@@ -1397,7 +1397,7 @@ JNIEXPORT jint JNICALL Java_ml_dmlc_mxnet_LibInfo_mxSymbolInferShape
1397
1397
const char **keys = NULL ;
1398
1398
if (jkeys != NULL ) {
1399
1399
keys = new const char *[jnumArgs];
1400
- for (size_t i = 0 ; i < jnumArgs; i++) {
1400
+ for (int i = 0 ; i < jnumArgs; i++) {
1401
1401
jstring jkey = (jstring) env->GetObjectArrayElement (jkeys, i);
1402
1402
const char *key = env->GetStringUTFChars (jkey, 0 );
1403
1403
keys[i] = key;
@@ -1667,15 +1667,15 @@ JNIEXPORT jint JNICALL Java_ml_dmlc_mxnet_LibInfo_mxRtcCreate
1667
1667
char *name = const_cast <char *>(env->GetStringUTFChars (jname, 0 ));
1668
1668
int num_input = env->GetArrayLength (jinputNames);
1669
1669
char **inputNames = new char *[num_input];
1670
- for (size_t i = 0 ; i < num_input; i++) {
1670
+ for (int i = 0 ; i < num_input; i++) {
1671
1671
jstring jinname = reinterpret_cast <jstring>(env->GetObjectArrayElement (jinputNames, i));
1672
1672
char *inname = const_cast <char *>(env->GetStringUTFChars (jinname, 0 ));
1673
1673
inputNames[i] = inname;
1674
1674
env->DeleteLocalRef (jinname);
1675
1675
}
1676
1676
int num_output = env->GetArrayLength (joutputNames);
1677
1677
char **outputNames = new char *[num_output];
1678
- for (size_t i = 0 ; i < num_output; i++) {
1678
+ for (int i = 0 ; i < num_output; i++) {
1679
1679
jstring joutname = reinterpret_cast <jstring>(env->GetObjectArrayElement (joutputNames, i));
1680
1680
char *outname = const_cast <char *>(env->GetStringUTFChars (joutname, 0 ));
1681
1681
outputNames[i] = outname;
@@ -1700,13 +1700,13 @@ JNIEXPORT jint JNICALL Java_ml_dmlc_mxnet_LibInfo_mxRtcCreate
1700
1700
env->ReleaseStringUTFChars (jkernel, kernel);
1701
1701
env->ReleaseLongArrayElements (jinputs, inputs, 0 );
1702
1702
env->ReleaseLongArrayElements (joutputs, outputs, 0 );
1703
- for (size_t i = 0 ; i < num_input; i++) {
1703
+ for (int i = 0 ; i < num_input; i++) {
1704
1704
jstring jinname = reinterpret_cast <jstring>(env->GetObjectArrayElement (jinputNames, i));
1705
1705
env->ReleaseStringUTFChars (jinname, inputNames[i]);
1706
1706
env->DeleteLocalRef (jinname);
1707
1707
}
1708
1708
delete[] inputNames;
1709
- for (size_t i = 0 ; i < num_output; i++) {
1709
+ for (int i = 0 ; i < num_output; i++) {
1710
1710
jstring joutname = reinterpret_cast <jstring>(env->GetObjectArrayElement (joutputNames, i));
1711
1711
env->ReleaseStringUTFChars (joutname, outputNames[i]);
1712
1712
env->DeleteLocalRef (joutname);
0 commit comments