diff --git a/imageio/image_enc.c b/imageio/image_enc.c index 0a37785e..1baf809d 100644 --- a/imageio/image_enc.c +++ b/imageio/image_enc.c @@ -361,7 +361,8 @@ int WebPWriteTIFF(FILE* fout, const WebPDecBuffer* const buffer) { const uint8_t* rgba = buffer->u.RGBA.rgba; const int stride = buffer->u.RGBA.stride; const uint8_t bytes_per_px = has_alpha ? 4 : 3; - const int assoc_alpha = WebPIsPremultipliedMode(buffer->colorspace) ? 1 : 2; + const uint8_t assoc_alpha = + WebPIsPremultipliedMode(buffer->colorspace) ? 1 : 2; // For non-alpha case, we omit tag 0x152 (ExtraSamples). const uint8_t num_ifd_entries = has_alpha ? NUM_IFD_ENTRIES : NUM_IFD_ENTRIES - 1; diff --git a/imageio/pnmdec.c b/imageio/pnmdec.c index 6ec8a57a..796fda2b 100644 --- a/imageio/pnmdec.c +++ b/imageio/pnmdec.c @@ -36,7 +36,7 @@ typedef struct { int depth; int max_value; int type; // 5, 6 or 7 - PNMFlags seen_flags; + int seen_flags; } PNMInfo; // -----------------------------------------------------------------------------