summaryrefslogtreecommitdiff
path: root/libopenjpeg
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-03-17 17:03:16 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-03-17 17:03:16 +0000
commitb3f00d05a8bf7eefaf031e04e1dcb4aa245b1f50 (patch)
treef6c7fa371acf5cb6ac7b0e2d4d092acc583cacd4 /libopenjpeg
parent652d34b0a8bda11ffea8ef678ce8c91db31fabab (diff)
[trunk] remove a warning, about ISO C restricts enumerator values to range of 'int'
Diffstat (limited to 'libopenjpeg')
-rw-r--r--libopenjpeg/jp2.h4
-rw-r--r--libopenjpeg/mct.h10
2 files changed, 7 insertions, 7 deletions
diff --git a/libopenjpeg/jp2.h b/libopenjpeg/jp2.h
index 299215e0..1de72a9b 100644
--- a/libopenjpeg/jp2.h
+++ b/libopenjpeg/jp2.h
@@ -77,14 +77,14 @@ typedef enum
JP2_STATE_HEADER = 0x4,
JP2_STATE_CODESTREAM = 0x8,
JP2_STATE_END_CODESTREAM = 0x10,
- JP2_STATE_UNKNOWN = 0x80000000
+ JP2_STATE_UNKNOWN = 0x7fffffff /* ISO C restricts enumerator values to range of 'int' */
}
JP2_STATE;
typedef enum
{
JP2_IMG_STATE_NONE = 0x0,
- JP2_IMG_STATE_UNKNOWN = 0x80000000
+ JP2_IMG_STATE_UNKNOWN = 0x7fffffff
}
JP2_IMG_STATE;
diff --git a/libopenjpeg/mct.h b/libopenjpeg/mct.h
index c701280a..fab28d0c 100644
--- a/libopenjpeg/mct.h
+++ b/libopenjpeg/mct.h
@@ -93,15 +93,15 @@ double mct_getnorm_real(int compno);
opj_bool mct_encode_custom(
- // MCT data
+ /* MCT data */
OPJ_BYTE * p_coding_data,
- // size of components
+ /* size of components */
OPJ_UINT32 n,
- // components
+ /* components */
OPJ_BYTE ** p_data,
- // nb of components (i.e. size of p_data)
+ /* nb of components (i.e. size of p_data) */
OPJ_UINT32 p_nb_comp,
- // tells if the data is signed
+ /* tells if the data is signed */
OPJ_UINT32 is_signed);
opj_bool mct_decode_custom(