From 503dfb7162df44514d79ffad44b0b76010b5e083 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Tue, 9 Jul 2002 09:03:00 +0000 Subject: [PATCH] Fixed interchanged max/min --- src/pcm/plugin_ops.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pcm/plugin_ops.h b/src/pcm/plugin_ops.h index 1e2b73f1..cb4f6e90 100644 --- a/src/pcm/plugin_ops.h +++ b/src/pcm/plugin_ops.h @@ -795,32 +795,32 @@ static inline void _norms(const void *src, void *dst, case 8: s = *(int8_t*)src; if (s >= 0x7f) - goto _min; - else if (s <= -0x80) goto _max; + else if (s <= -0x80) + goto _min; break; case 16: s = *(int16_t*)src; if (s >= 0x7fff) - goto _min; - else if (s <= -0x8000) goto _max; + else if (s <= -0x8000) + goto _min; break; case 24: s = *(int32_t*)src; if (s >= 0x7fffff) - goto _min; - else if (s <= -0x800000) goto _max; + else if (s <= -0x800000) + goto _min; break; case 32: { int64_t s64; s64 = *(int64_t*)src; if (s64 >= 0x7fffffff) - goto _min; - else if (s64 <= -0x80000000) goto _max; + else if (s64 <= -0x80000000) + goto _min; s = s64; break; } -- 2.47.1