From dfd5f680419b365da1493d177cc7d1abb4e3e9ab Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 5 Feb 2021 09:54:40 +0100 Subject: [PATCH] Merge #21082: refactor: Treat ArgsManager::Flags as uint32_t explicitly faf3b4b53359850e0c47e67ead1c2b6dccc55531 refactor: Treat ArgsManager::Flags as uint32_t explicitly (MarcoFalke) Pull request description: The underlying type might be implementation defined, which is probably why the sanitizer kills the fuzz tests. Fix that by pinning the underlying type. This refactor does not change behaviour and only affects the sanitizer in tests. ACKs for top commit: practicalswift: cr ACK faf3b4b53359850e0c47e67ead1c2b6dccc55531 Tree-SHA512: d446824836e1037b4200ba3630c8628090678cfad45559866275d8e06349f7c8cdb7e816619f5afb35f9f65299cc00e046d2f81b73cd8eb843e2e15676b647d5 --- src/util/system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/system.h b/src/util/system.h index 05c6fd1e1c..a147aa8478 100644 --- a/src/util/system.h +++ b/src/util/system.h @@ -160,7 +160,7 @@ struct SectionInfo class ArgsManager { public: - enum Flags { + enum Flags : uint32_t { // Boolean options can accept negation syntax -noOPTION or -noOPTION=1 ALLOW_BOOL = 0x01, ALLOW_INT = 0x02,