diff --git a/Utilities/otbsvm/svm.cxx b/Utilities/otbsvm/svm.cxx index f649488bb8ac3e35e375bb769af17b7447eb534d..4c0f95b08f218660f4d01fded5a1e37323e2d9e4 100644 --- a/Utilities/otbsvm/svm.cxx +++ b/Utilities/otbsvm/svm.cxx @@ -2975,7 +2975,7 @@ svm_model *svm_load_model(const char *model_file_name, /*otb::*/GenericKernelFun for(i=0;i<m;i++) model->sv_coef[i] = Malloc(double,l); model->SV = Malloc(svm_node*,l); - for(unsigned int n = 0;n<l;++n) + for(int n = 0;n<l;++n) { model->SV[n]=Malloc(svm_node,1); model->SV[n]->index = -1; @@ -2985,7 +2985,7 @@ svm_model *svm_load_model(const char *model_file_name, /*otb::*/GenericKernelFun if(l>0) { x_space = Malloc(svm_node,elements); - for(unsigned int n = 0;n<elements;++n) + for(int n = 0;n<elements;++n) { x_space[n].index = -1; x_space[n].value = 0.;