From 1e7a7dc049d248df4cc78b779bc7fc307d39308b Mon Sep 17 00:00:00 2001 From: Thomas Feuvrier <thomas.feuvrier@c-s.fr> Date: Tue, 6 May 2008 07:47:27 +0000 Subject: [PATCH] Correction warning dans boucle: comparaison unsigned int avec int. --- Utilities/otbsvm/svm.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utilities/otbsvm/svm.cxx b/Utilities/otbsvm/svm.cxx index f649488bb8..4c0f95b08f 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.; -- GitLab