diff options
| author | lizzie <lizzie@eden-emu.dev> | 2026-05-09 16:26:17 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-05-09 16:26:17 +0200 |
| commit | 86f2f0bc36845ac45de315d9ba78c569b62d866a (patch) | |
| tree | f57a7dad767b125fa2b07775e5be8939306f1581 /externals/demangle | |
| parent | cad9db48861c5bea2a0dac47448dfb4e0d1f84d5 (diff) | |
[*] Re-fix clang-cl building (#3940)
Signed-off-by: lizzie <lizzie@eden-emu.dev>
Co-authored-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3940
Reviewed-by: crueter <crueter@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'externals/demangle')
| -rw-r--r-- | externals/demangle/llvm/Demangle/ItaniumDemangle.h | 4 | ||||
| -rw-r--r-- | externals/demangle/llvm/Demangle/Utility.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/externals/demangle/llvm/Demangle/ItaniumDemangle.h b/externals/demangle/llvm/Demangle/ItaniumDemangle.h index 0dc3d73372..a2bac5d735 100644 --- a/externals/demangle/llvm/Demangle/ItaniumDemangle.h +++ b/externals/demangle/llvm/Demangle/ItaniumDemangle.h @@ -1259,7 +1259,7 @@ class ParameterPack final : public Node { // Setup OutputBuffer for a pack expansion, unless we're already expanding // one. void initializePackExpansion(OutputBuffer &OB) const { - if (OB.CurrentPackMax == std::numeric_limits<unsigned>::max()) { + if (OB.CurrentPackMax == (std::numeric_limits<unsigned>::max)()) { OB.CurrentPackMax = static_cast<unsigned>(Data.size()); OB.CurrentPackIndex = 0; } @@ -1353,7 +1353,7 @@ public: const Node *getChild() const { return Child; } void printLeft(OutputBuffer &OB) const override { - constexpr unsigned Max = std::numeric_limits<unsigned>::max(); + constexpr unsigned Max = (std::numeric_limits<unsigned>::max)(); ScopedOverride<unsigned> SavePackIdx(OB.CurrentPackIndex, Max); ScopedOverride<unsigned> SavePackMax(OB.CurrentPackMax, Max); size_t StreamPos = OB.getCurrentPosition(); diff --git a/externals/demangle/llvm/Demangle/Utility.h b/externals/demangle/llvm/Demangle/Utility.h index 30dfbfc8dc..0d2e613ea9 100644 --- a/externals/demangle/llvm/Demangle/Utility.h +++ b/externals/demangle/llvm/Demangle/Utility.h @@ -88,8 +88,8 @@ public: /// If a ParameterPackExpansion (or similar type) is encountered, the offset /// into the pack that we're currently printing. - unsigned CurrentPackIndex = std::numeric_limits<unsigned>::max(); - unsigned CurrentPackMax = std::numeric_limits<unsigned>::max(); + unsigned CurrentPackIndex = (std::numeric_limits<unsigned>::max)(); + unsigned CurrentPackMax = (std::numeric_limits<unsigned>::max)(); /// When zero, we're printing template args and '>' needs to be parenthesized. /// Use a counter so we can simply increment inside parentheses. |
