7556521417
As coverity points out, if the second uint64_t was greater than the first (I don't think it actually can be), then the overflow would result in the check succeeding when it shouldn't. We could cast this to an integer type, but since we have uint64_t, we'd need int128_t for that. Instead, replace the comparison to 0 with a direct comparison, since that would give the correct result without potential to overflow. CID: 1604833 Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31175>