diff options
| author | Stefan Weil <sw@weilnetz.de> | 2017-08-14 14:36:06 +0200 |
|---|---|---|
| committer | Stefan Weil <sw@weilnetz.de> | 2017-08-14 14:41:27 +0200 |
| commit | bc59410f253b0cd3d4818ec06ce957cbdbfe4341 (patch) | |
| tree | ff4cacd84402b64ebc2711b00412010123c70b98 /src/lib/openjp2/mqc_inl.h | |
| parent | 10e6ce2c2cfacf51fdde7e9c69bf2365840f4bb0 (diff) | |
Use const qualifier for mqc_states
This allows more compiler optimizations.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'src/lib/openjp2/mqc_inl.h')
| -rw-r--r-- | src/lib/openjp2/mqc_inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjp2/mqc_inl.h b/src/lib/openjp2/mqc_inl.h index d95d9492..310a3287 100644 --- a/src/lib/openjp2/mqc_inl.h +++ b/src/lib/openjp2/mqc_inl.h @@ -157,7 +157,7 @@ static INLINE OPJ_UINT32 opj_mqc_raw_decode(opj_mqc_t *mqc) } #define DOWNLOAD_MQC_VARIABLES(mqc, curctx, c, a, ct) \ - register opj_mqc_state_t **curctx = mqc->curctx; \ + register const opj_mqc_state_t **curctx = mqc->curctx; \ register OPJ_UINT32 c = mqc->c; \ register OPJ_UINT32 a = mqc->a; \ register OPJ_UINT32 ct = mqc->ct |
