From 7137b73ca0625f3245736138c91f3627226fba56 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Thu, 20 Jun 2024 13:02:08 -0700 Subject: [PATCH] cpu: Fix `std::min` type mismatch in reg_class.hh (#1266) Introduced in #1234, this caused compilation to faill in Apple Silicon systems. This bug is the same as #582 where a more detailed explanation is provided. --- src/cpu/reg_class.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/reg_class.hh b/src/cpu/reg_class.hh index 68a3fb8023..5a297e424f 100644 --- a/src/cpu/reg_class.hh +++ b/src/cpu/reg_class.hh @@ -248,7 +248,7 @@ class RegClass return _ops->valString(val, regBytes()); } std::string - valString(const void *val, const uint64_t& num_bytes) const + valString(const void *val, const size_t& num_bytes) const { return _ops->valString(val, std::min(regBytes(), num_bytes)); }