]> granicus.if.org Git - liblinear/commitdiff
Updated a switch statement.
authorChun-Heng Huang <applerman@hotmail.com>
Mon, 11 Mar 2013 09:35:30 +0000 (17:35 +0800)
committerChun-Heng Huang <applerman@hotmail.com>
Mon, 11 Mar 2013 09:35:30 +0000 (17:35 +0800)
Changed it to the convention.

matlab/predict.c

index 2fd992e52d8afdeaf043b6153a8c156a994c1d35..36c6046206a48858393f9af37e5dff645be54496 100644 (file)
@@ -201,11 +201,14 @@ void do_predict(int nlhs, mxArray *plhs[], const mxArray *prhs[], struct model *
        if(prob_estimates != NULL)
                free(prob_estimates);
 
-       switch(nlhs){
-               case 3: plhs[2] = tplhs[2];
-                               plhs[1] = tplhs[1];
+       switch(nlhs)
+       {
+               case 3:
+                       plhs[2] = tplhs[2];
+                       plhs[1] = tplhs[1];
                case 1:
-               case 0: plhs[0] = tplhs[0];
+               case 0:
+                       plhs[0] = tplhs[0];
        }
 }