Browse Source

- using unsigned int

development v1.0.0
Andreas Romeyke 2 months ago
parent
commit
10634909b8
  1. 4
      src/headers/check.h
  2. 4
      src/headers/config_parser.h
  3. 2
      src/helper/check_tiffparse.c

4
src/headers/check.h

@ -27,8 +27,8 @@ static const bool_t false = 0;
static const bool_t true = 1;
/* MINTAGS - MAXTAGS is range of possible existing TAG numbers */
#define MINTAGS 254
#define MAXTAGS 65536
#define MINTAGS 254U
#define MAXTAGS 65536U
typedef enum{ is_memmap, is_filep } ct_ioflag_t ; /* flag */

4
src/headers/config_parser.h

@ -28,7 +28,7 @@ typedef enum {
/* the stack size depends on count of rules and count of numbers, in general
* 65536 should be enough. Otherwise you need to increase it */
#define MAXSTACKDEPTH 65536
#define MAXSTACKDEPTH 65536u
typedef enum {
fc_true,
fc_false,
@ -58,7 +58,7 @@ typedef enum {
fc_dummy
} function_t;
#define INTERNALSTACKDEPTH 8
#define INTERNALSTACKDEPTH 8u
typedef struct internal_entry_s {
int lineno;
bool_t is_precondition;

2
src/helper/check_tiffparse.c

@ -711,7 +711,7 @@ ctiff_t * initialize_ctif(const char * tiff_file, ct_ioflag_t ioflag) {
ctif->streamp = NULL;
ctif->actual_streamp = NULL;
ctif->tagorder=unknown_tag_order;
for (int i= 0; i<MAXTAGS; i++) { /* init with -1 indicating 'not found' */
for (unsigned int i= 0; i<MAXTAGS; i++) { /* init with -1 indicating 'not found' */
ctif->tag_cache[i]= -1;
}
#ifdef _HAVE_MMAP

Loading…
Cancel
Save