commit f8f86a1a8172fa8b66ffaf7e04c0b723ee2b4866
Author: Kornel Benko <[email protected]>
Date: Sun Jan 23 20:13:26 2022 +0100
Next runtime messages to be ommitted if compiled with clang using flag
'-fsanitize'.
Prevent the return of impossible values for 'enum flags'.
For instance the result of '~Update::Force' at src/BufferView.cpp:3025
without this patch
is '4294967293'.
---
src/update_flags.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/update_flags.h b/src/update_flags.h
index 0efa541..517bfb6 100644
--- a/src/update_flags.h
+++ b/src/update_flags.h
@@ -46,7 +46,7 @@ inline flags operator&(flags const f, flags const g)
inline flags operator~(flags const f)
{
- return static_cast<flags>(~int(f));
+ return static_cast<flags>(~int(f) & 0x3f);
}
} // namespace Update
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs