We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac64e03 commit a531e11Copy full SHA for a531e11
src/apps/others/ojph_img_io.cpp
@@ -2436,6 +2436,8 @@ namespace ojph {
2436
2437
si16 convert_si32_to_si16(const si32 si32_value, bool convert_special_numbers_to_finite_numbers = false)
2438
{
2439
+# pragma disabling_convert_si32_to_si16
2440
+#if 0
2441
if (si32_value > INT16_MAX)
2442
return INT16_MAX;
2443
else if (si32_value < INT16_MIN)
@@ -2459,6 +2461,7 @@ namespace ojph {
2459
2461
return half_value.bits();
2460
2462
}
2463
else
2464
+#endif
2465
return (si16)si32_value;
2466
2467
0 commit comments