From d67980140c53465e1277af1d99168901ac683ad8 Mon Sep 17 00:00:00 2001 From: Sil Vilerino Date: Fri, 31 Jan 2025 14:48:19 -0500 Subject: [PATCH] u_thread.h: Fix warning C4800 forcing value to bool 'true' or 'false' Reviewed-By: Jesse Natalie Reviewed-by: Jesse Natalie Part-of: --- src/util/u_thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/u_thread.h b/src/util/u_thread.h index b5c7667d3d0..57ebdc51ba1 100644 --- a/src/util/u_thread.h +++ b/src/util/u_thread.h @@ -109,7 +109,7 @@ util_current_thread_get_time_nano(void) static inline bool u_thread_is_self(thrd_t thread) { - return thrd_equal(thrd_current(), thread); + return thrd_equal(thrd_current(), thread) != 0; } /*