diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-03 15:55:06 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-03 15:55:06 +0000 |
| commit | b1b17ee264461b58ad1d04c883300cffdae020e9 (patch) | |
| tree | 11e7a285478b28830b0719b3880b8b0f7ab31378 /src/lib/openjpip | |
| parent | 74600cfb1489033cadfc1125062c695ebf8980b9 (diff) | |
[trunk] Prefer compile time constant to avoid conversion double -> int
Diffstat (limited to 'src/lib/openjpip')
| -rw-r--r-- | src/lib/openjpip/index_manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjpip/index_manager.c b/src/lib/openjpip/index_manager.c index 5ca3f043..573deb26 100644 --- a/src/lib/openjpip/index_manager.c +++ b/src/lib/openjpip/index_manager.c @@ -646,7 +646,7 @@ OPJ_BOOL set_CODmkrdata( markeridx_param_t *codmkidx, codestream_param_t codestr COD->XPsiz = (Byte4_t *)opj_malloc( sizeof(Byte4_t)); COD->YPsiz = (Byte4_t *)opj_malloc( sizeof(Byte4_t)); - COD->XPsiz[0] = COD->YPsiz[0] = pow(2,15); + COD->XPsiz[0] = COD->YPsiz[0] = 1 << 15; /* pow(2,15); */ } return OPJ_TRUE; } |
