]> granicus.if.org Git - openjpeg/commitdiff
[trunk] Prefer compile time constant to avoid conversion double -> int
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 3 Mar 2014 15:55:06 +0000 (15:55 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 3 Mar 2014 15:55:06 +0000 (15:55 +0000)
src/lib/openjpip/index_manager.c

index 5ca3f043b4e986c86ac479dc25b9f369a509a360..573deb26fe8280541388931aa44a243d25048232 100644 (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;
 }