Mercurial > hg > minc-tools
changeset 2534:a51890faaec2
couple of missing var decls
was not compiling, added obvious missing var decls, no idea if it
actually works though
author | John Cupitt <jcupitt@gmail.com> |
---|---|
date | Mon, 01 Aug 2011 10:14:02 +0100 |
parents | 25ecac1ab0e4 |
children | 968fe3887b8f |
files | libsrc2/hyper.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libsrc2/hyper.c +++ b/libsrc2/hyper.c @@ -729,6 +729,7 @@ int result; int is_signed; int nctype; + int i; file_id = volume->hdf_id; @@ -746,8 +747,10 @@ miicv_setint(icv, MI_ICV_DO_NORM, TRUE); miicv_setint(icv, MI_ICV_DO_DIM_CONV, FALSE); //figure out whether we need to flip image L.B May 18/2011 - for (i=0; i < ndims ; i++) + for (i=0; i < volume->number_of_dims; i++) { + midimhandle_t hdim; + hdim = volume->dim_handles[i]; switch (hdim->flipping_order) { case MI_FILE_ORDER: