Mercurial > forge
changeset 12704:386de1bf1954 octave-forge
fix integer types - avoid compiler warnings
author | schloegl |
---|---|
date | Tue, 05 Jan 2016 09:53:40 +0000 |
parents | 97f8473c1099 |
children | 8b2f4eb5c0aa |
files | extra/NaN/src/linear_model_matlab.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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);