Browse Source

- fixed assert

development
Andreas Romeyke 2 years ago
parent
commit
2060ea2708
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/helper/check_tiffparse.c

+ 5
- 5
src/helper/check_tiffparse.c View File

@ -438,7 +438,7 @@ ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count,
OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
break;
case 2: /* 8-bit bytes w/ last byte null */
static_assert( sizeof(char) == sizeof(uint8), "");
assert( sizeof(char) == sizeof(uint8));
OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
break;
case 6: /* !8-bit signed integer */
@ -469,20 +469,20 @@ ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count,
fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
exit(EXIT_FAILURE);
case 11: /* !32-bit IEEE floating point */
static_assert( sizeof(float) == 4, "");
assert( sizeof(float) == 4);
OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
break;
case 12: /* !64-bit IEEE floating point */
static_assert( sizeof(double) == 8, "");
assert( sizeof(double) == 8);
OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
break;
case 16: /* BigTIFF 64-bit unsigned integer */
case 18: /* BigTIFF 64-bit unsigned integer (offset) */
static_assert( sizeof(double) == 8, "");
assert( sizeof(double) == 8);
OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
break;
case 17: /* BigTIFF 64-bit signed integer */
static_assert( sizeof(double) == 8, "");
assert( sizeof(double) == 8);
OFFSET_MALLOC(ctif, offset_p->datas64p, int64, count)
break;
default: /* should not occur */


Loading…
Cancel
Save