@@ -258,7 +258,7 @@ namespace ojph {
258258 line_buf *tc = comps[comp_num].get_line ();
259259 if (reversible)
260260 {
261- si64 shift = 1LL << (num_bits[comp_num] - 1 );
261+ si64 shift = (si64) 1 << (num_bits[comp_num] - 1 );
262262 if (is_signed[comp_num] && nlt_type3[comp_num])
263263 rev_convert_nlt_type3 (line, line_offsets[comp_num],
264264 tc, 0 , shift + 1 , comp_width);
@@ -282,7 +282,7 @@ namespace ojph {
282282 }
283283 else
284284 {
285- si64 shift = 1LL << (num_bits[comp_num] - 1 );
285+ si64 shift = (si64) 1 << (num_bits[comp_num] - 1 );
286286 ui32 comp_width = comp_rects[comp_num].siz .w ;
287287 if (reversible)
288288 {
@@ -346,7 +346,7 @@ namespace ojph {
346346 ui32 comp_width = recon_comp_rects[comp_num].siz .w ;
347347 if (reversible)
348348 {
349- si64 shift = 1LL << (num_bits[comp_num] - 1 );
349+ si64 shift = (si64) 1 << (num_bits[comp_num] - 1 );
350350 if (is_signed[comp_num] && nlt_type3[comp_num])
351351 rev_convert_nlt_type3 (src_line, 0 , tgt_line,
352352 line_offsets[comp_num], shift + 1 , comp_width);
@@ -384,7 +384,7 @@ namespace ojph {
384384 }
385385 if (reversible)
386386 {
387- si64 shift = 1LL << (num_bits[comp_num] - 1 );
387+ si64 shift = (si64) 1 << (num_bits[comp_num] - 1 );
388388 line_buf* src_line;
389389 if (comp_num < 3 )
390390 src_line = lines + comp_num;
0 commit comments