From a531e11467083a5454c0373314b395b90f97363a Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 21 Jan 2025 18:57:25 -0800 Subject: [PATCH] disable clamping operation for debugging purposes --- src/apps/others/ojph_img_io.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/others/ojph_img_io.cpp b/src/apps/others/ojph_img_io.cpp index 242f330c..8faa0f09 100644 --- a/src/apps/others/ojph_img_io.cpp +++ b/src/apps/others/ojph_img_io.cpp @@ -2436,6 +2436,8 @@ namespace ojph { si16 convert_si32_to_si16(const si32 si32_value, bool convert_special_numbers_to_finite_numbers = false) { +# pragma disabling_convert_si32_to_si16 +#if 0 if (si32_value > INT16_MAX) return INT16_MAX; else if (si32_value < INT16_MIN) @@ -2459,6 +2461,7 @@ namespace ojph { return half_value.bits(); } else +#endif return (si16)si32_value; }