glviewvol

diff src/image.cc @ 1:cc9e0d8590e2

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 27 Dec 2014 06:32:28 +0200
parents 7bdf40403b9c
children 32c4a7160350
line diff
     1.1 --- a/src/image.cc	Sat Dec 27 02:35:58 2014 +0200
     1.2 +++ b/src/image.cc	Sat Dec 27 06:32:28 2014 +0200
     1.3 @@ -1,3 +1,4 @@
     1.4 +#include <string.h>
     1.5  #include <imago2.h>
     1.6  #include "image.h"
     1.7  
     1.8 @@ -39,7 +40,7 @@
     1.9  	// TODO dicom loader ... ?
    1.10  
    1.11  	int x, y;
    1.12 -	float *pixels = img_load_pixels(fname, &x, &y, IMG_FMT_GREYF);
    1.13 +	float *pixels = (float*)img_load_pixels(fname, &x, &y, IMG_FMT_GREYF);
    1.14  	if(!pixels) {
    1.15  		return false;
    1.16  	}