mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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'.
This commit is contained in:
parent
ec3a44fef5
commit
f8f86a1a81
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user