From ca18eb763421fe8cfd6365ebab3e694e6d747d59 Mon Sep 17 00:00:00 2001 From: Chih-Jen Lin Date: Fri, 20 Jun 2014 22:15:19 +0800 Subject: [PATCH] fix the following bug - model_->bias = (int)ptr[0]; + model_->bias = ptr[0]; --- matlab/linear_model_matlab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.40.0