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.
This commit is contained in:
Bobby R. Bruce
2024-06-20 13:02:08 -07:00
committed by GitHub
parent 7ff1e381c9
commit 7137b73ca0

View File

@@ -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));
}