]> granicus.if.org Git - liblinear/commitdiff
fixed repeated declaration of variable j in function train.
authorjeremy89183 <jeremy89183@gmail.com>
Mon, 19 Oct 2015 05:19:10 +0000 (13:19 +0800)
committerjeremy89183 <jeremy89183@gmail.com>
Mon, 19 Oct 2015 05:19:10 +0000 (13:19 +0800)
linear.cpp

index f9b9bdcfa083862683db5ca9766a944d81922c1d..0aadba388262e1ade5f9467863575406c4101d96 100644 (file)
@@ -2386,7 +2386,7 @@ model* train(const problem *prob, const parameter *param)
 
                                        train_one(&sub_prob, param, w, weighted_C[i], param->C);
 
-                                       for(int j=0;j<w_size;j++)
+                                       for(j=0;j<w_size;j++)
                                                model_->w[j*nr_class+i] = w[j];
                                }
                                free(w);