ref: 1c60d10318a37e1e2e1d343cf9bf89b530f6518c
parent: 2c008750ba1c7f884304333c38903592cfd90ea8
author: Alex Cherepanov <[email protected]>
date: Mon Jan 28 06:56:37 EST 2013
Bug 693284: Fix 32 vs 64-bit typ[e mismatch.
--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -301,7 +301,7 @@
}
if (params->SDREFAGG) {
int64_t tmp = params->SDNUMINSYMS + params->SDNUMNEWSYMS;
- for (SBSYMCODELEN = 0; (1 << SBSYMCODELEN) < tmp; SBSYMCODELEN++);
+ for (SBSYMCODELEN = 0; ((int64_t)1 << SBSYMCODELEN) < tmp; SBSYMCODELEN++);
IAID = jbig2_arith_iaid_ctx_new(ctx, SBSYMCODELEN);
IARDX = jbig2_arith_int_ctx_new(ctx);
IARDY = jbig2_arith_int_ctx_new(ctx);