mirror of https://github.com/CGAL/cgal
wdim should also be a std::size_t
This commit is contained in:
parent
127a07b0b1
commit
6529a13915
|
|
@ -255,7 +255,7 @@ typedef struct point_image {
|
|||
void *data;
|
||||
|
||||
/** Image word size (in bytes) */
|
||||
unsigned int wdim;
|
||||
std::size_t wdim;
|
||||
/** Image format to use for I/0. Should not be set by user */
|
||||
PTRIMAGE_FORMAT imageFormat;
|
||||
/** Data buffer vectors are interlaced or non interlaced */
|
||||
|
|
@ -545,7 +545,7 @@ namespace IMAGEIO {
|
|||
//
|
||||
// The following definition are for the evaluate function.
|
||||
//
|
||||
template <WORD_KIND wordKind, SIGN sign, unsigned int wdim>
|
||||
template <WORD_KIND wordKind, SIGN sign, std::size_t wdim>
|
||||
struct Word_type_generator
|
||||
{
|
||||
};
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ int readInrimageHeader(const char *,_image *im) {
|
|||
insight (GM).
|
||||
*/
|
||||
else if(!strncmp(str, "PIXSIZE=", 8)) {
|
||||
if(sscanf(str+8, "%u", &im->wdim) != 1) return -1;
|
||||
if(sscanf(str+8, "%zu", &im->wdim) != 1) return -1;
|
||||
if(im->wdim != 8 && im->wdim != 16 && im->wdim != 32 &&
|
||||
im->wdim != 64) return -1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue