src/util: Remove out-of-range comparison
authorKristian H. Kristensen <hoegsberg@google.com>
Fri, 22 May 2020 21:33:17 +0000 (14:33 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Tue, 26 May 2020 19:46:18 +0000 (12:46 -0700)
commit8341f30f1ea87a22624031c2f5f670d1b9f8678a
treeaf5995e9560b163f133aa3ab3531ca7556cc6390
parentf4e64e9f530c22e779ef5747c2a927bdd5b6c47d
src/util: Remove out-of-range comparison

Silence the warning about this always-true comparison.

src/util/softfloat.c:214:42: warning: comparison of constant 32768
with expression of type 'int16_t' (aka 'short') is always false
[-Wtautological-constant-out-of-range-compare]
        } else if ((e > 0x1d) || (0x8000 <= m)) {
                                  ~~~~~~ ^  ~

Reviewed-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5174>
src/util/softfloat.c