From 811f3a2eb19b4a0d797e682b496489b5e83547e3 Mon Sep 17 00:00:00 2001 From: Aous Naman Date: Sun, 10 Nov 2024 11:41:23 +1100 Subject: [PATCH] Address warnings in clang. --- src/apps/others/ojph_img_io.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/others/ojph_img_io.cpp b/src/apps/others/ojph_img_io.cpp index e77c5b7..89b8127 100644 --- a/src/apps/others/ojph_img_io.cpp +++ b/src/apps/others/ojph_img_io.cpp @@ -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;