Skip to content

Commit

Permalink
Address warnings in clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
aous72 committed Nov 10, 2024
1 parent dd011ac commit 811f3a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/apps/others/ojph_img_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1618,11 +1618,11 @@ namespace ojph {
this->width = width;

if (is_signed) {
upper_val = (1LL << (bit_depth - 1));
lower_val = -(1LL << (bit_depth - 1));
upper_val = ((si64)1 << (bit_depth - 1));
lower_val = -((si64)1 << (bit_depth - 1));
} else {
upper_val = 1LL << bit_depth;
lower_val = 0LL;
upper_val = (si64)1 << bit_depth;
lower_val = (si64)0;
}

bytes_per_sample = (bit_depth + 7) >> 3;
Expand Down

0 comments on commit 811f3a2

Please sign in to comment.