diff options
| author | Martin Ridgers <[email protected]> | 2022-01-31 09:59:54 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2022-01-31 09:59:54 +0100 |
| commit | bc1903144da2aace151c5460388a0d287f129837 (patch) | |
| tree | abb8f2416e94b0a38e6e61eb1255c32ca56c3b4d | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen (diff) | |
| download | zen-bc1903144da2aace151c5460388a0d287f129837.tar.xz zen-bc1903144da2aace151c5460388a0d287f129837.zip | |
Fixed "int-into-bool-context" error that has mysteriously appeared
| -rw-r--r-- | thirdparty/trace/trace.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<bIsImportant, UE::Trace::Private::FImportantLogScope, UE::Trace::Private::FLogScope>::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" \
|