From: Chun-Heng Huang Date: Mon, 11 Mar 2013 09:35:30 +0000 (+0800) Subject: Updated a switch statement. X-Git-Tag: v194~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01208d86fc1802af82bd781b603516019e541784;p=liblinear Updated a switch statement. Changed it to the convention. --- diff --git a/matlab/predict.c b/matlab/predict.c index 2fd992e..36c6046 100644 --- a/matlab/predict.c +++ b/matlab/predict.c @@ -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]; } }