From: Chih-Jen Lin Date: Fri, 20 Jun 2014 14:15:19 +0000 (+0800) Subject: fix the following bug X-Git-Tag: v195~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca18eb763421fe8cfd6365ebab3e694e6d747d59;p=liblinear fix the following bug - model_->bias = (int)ptr[0]; + model_->bias = ptr[0]; --- diff --git a/matlab/linear_model_matlab.c b/matlab/linear_model_matlab.c index 7b5129e..8fe1c01 100644 --- a/matlab/linear_model_matlab.c +++ b/matlab/linear_model_matlab.c @@ -145,7 +145,7 @@ const char *matlab_matrix_to_model(struct model *model_, const mxArray *matlab_s // bias ptr = mxGetPr(rhs[id]); - model_->bias = (int)ptr[0]; + model_->bias = ptr[0]; id++; if(model_->bias>=0)