[trunk] Prefer compile time constant to avoid conversion double -> int

This commit is contained in:
Mathieu Malaterre 2014-03-03 15:55:06 +00:00
parent 74600cfb14
commit b1b17ee264
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}