diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-04-16 20:52:44 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-04-16 23:34:10 +0200 |
| commit | 271a71ef0f1dd4740c9f4474279c7da8d15850c9 (patch) | |
| tree | 20b14ca4e3226712a3b1ab34492a9cf12ae99046 /src/lib/openjp2/openjpeg.h | |
| parent | 221a801a97a3ea968a311f7905c18a1eb7f034c4 (diff) | |
Fix warnings about signed/unsigned casts in pi.c
Diffstat (limited to 'src/lib/openjp2/openjpeg.h')
| -rw-r--r-- | src/lib/openjp2/openjpeg.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/openjp2/openjpeg.h b/src/lib/openjp2/openjpeg.h index 50ed02d8..3b773e97 100644 --- a/src/lib/openjp2/openjpeg.h +++ b/src/lib/openjp2/openjpeg.h @@ -348,6 +348,10 @@ typedef void (*opj_msg_callback)(const char *msg, void *client_data); ========================================================== */ +#ifndef OPJ_UINT32_SEMANTICALLY_BUT_INT32 +#define OPJ_UINT32_SEMANTICALLY_BUT_INT32 OPJ_INT32 +#endif + /** * Progression order changes * @@ -366,7 +370,7 @@ typedef struct opj_poc { /** Tile number (starting at 1) */ OPJ_UINT32 tile; /** Start and end values for Tile width and height*/ - OPJ_INT32 tx0, tx1, ty0, ty1; + OPJ_UINT32_SEMANTICALLY_BUT_INT32 tx0, tx1, ty0, ty1; /** Start value, initialised in pi_initialise_encode*/ OPJ_UINT32 layS, resS, compS, prcS; /** End value, initialised in pi_initialise_encode */ |
