# HG changeset patch # User schloegl # Date 1451987620 0 # Node ID 386de1bf1954c8f79ae40461143e2c0650500b8d # Parent 97f8473c1099b366baa618866baf4bab063a241e fix integer types - avoid compiler warnings diff -r 97f8473c1099 -r 386de1bf1954 extra/NaN/src/linear_model_matlab.c --- a/extra/NaN/src/linear_model_matlab.c Tue Jan 05 09:50:51 2016 +0000 +++ b/extra/NaN/src/linear_model_matlab.c Tue Jan 05 09:53:40 2016 +0000 @@ -56,12 +56,12 @@ const char *model_to_matlab_structure(mxArray *plhs[], struct model *model_) { - int i; - int nr_w; + size_t i; + size_t nr_w; double *ptr; mxArray *return_model, **rhs; int out_id = 0; - int n, w_size; + size_t n, w_size; rhs = (mxArray **)mxMalloc(sizeof(mxArray *)*NUM_OF_RETURN_FIELD); @@ -135,11 +135,11 @@ const char *matlab_matrix_to_model(struct model *model_, const mxArray *matlab_struct) { - int i, num_of_fields; - int nr_w; + size_t i, num_of_fields; + size_t nr_w; double *ptr; int id = 0; - int n, w_size; + size_t n, w_size; mxArray **rhs; num_of_fields = mxGetNumberOfFields(matlab_struct);