diff options
| author | Pavel Kopyl <pavelkopyl@gmail.com> | 2023-02-10 23:36:24 +0100 |
|---|---|---|
| committer | Pavel Kopyl <pavelkopyl@gmail.com> | 2023-02-14 22:16:19 +0100 |
| commit | 36606cf07080a44a1a9157f80112f9512bd6a3bf (patch) | |
| tree | 516934053dadeeeb876ceb0c5cc04f5f4fe4704c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 31c35285d27ed507ae758aefdca0d9cd05c7f21d (diff) | |
[NFC] Replace -1U{LL} expressions with appropriate *_MAX macros in Support library.
This makes a code a bit more clear and also gets rid of C4146 warning
on MSVC compiler:
'unary minus operator applied to unsigned type, result still unsigned'.
In case uint64_t variable is initialized or compared against -1U expression,
which corresponds to 32-bit constant, UINT_MAX macro is used to preserve
NFC semantics; -1ULL is replaced with UINT64_MAX.
Reviewed By: dblaikie, craig.topper
Differential Revision: https://reviews.llvm.org/D143942
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
