From bc1903144da2aace151c5460388a0d287f129837 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Mon, 31 Jan 2022 09:59:54 +0100 Subject: Fixed "int-into-bool-context" error that has mysteriously appeared --- thirdparty/trace/trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/trace/trace.h b/thirdparty/trace/trace.h index caa862ffe..d7fbbb71f 100644 --- a/thirdparty/trace/trace.h +++ b/thirdparty/trace/trace.h @@ -263,7 +263,7 @@ class FChannel; EventProps_Meta const EventProps_Private = {}; \ typedef std::conditional::type LogScopeType; \ explicit operator bool () const { return true; } \ - enum { EventFlags = PartialEventFlags|(EventProps_Meta::NumAuxFields ? UE::Trace::Private::FEventInfo::Flag_MaybeHasAux : 0), }; \ + enum { EventFlags = PartialEventFlags|((EventProps_Meta::NumAuxFields != 0) ? UE::Trace::Private::FEventInfo::Flag_MaybeHasAux : 0), }; \ static_assert( \ !bIsImportant || (uint32(EventFlags) & uint32(UE::Trace::Private::FEventInfo::Flag_NoSync)), \ "Trace events flagged as Important events must be marked NoSync" \ -- cgit v1.2.3