From 39017811159814b3bbf45051c4e54e725df3f3e7 Mon Sep 17 00:00:00 2001 From: taking-lying-flat <1615405@qq.com> Date: Sat, 3 Oct 2026 15:16:52 +0800 Subject: [PATCH] Fix float16 inequality comparing raw bits as an integer --- gloo/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gloo/types.h b/gloo/types.h index 94782d63d..57514b22c 100644 --- a/gloo/types.h +++ b/gloo/types.h @@ -134,7 +134,7 @@ struct alignas(2) float16 { } bool operator!=(const float16& rhs) const { - return !(*this == rhs.x); + return !(*this == rhs); } bool operator==(const int& rhs) const {