From 4df35b5256ef9fb3ff7aa0ac2f35fd8814bcfe5c Mon Sep 17 00:00:00 2001 From: hashlag Date: Sun, 22 Mar 2026 23:53:33 +0300 Subject: [PATCH] Fix compilation with apple clang. Provide the template parameter for std::min<> explicitly. :) --- Chaos/Cipher/Arc4/Arc4Crypt.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chaos/Cipher/Arc4/Arc4Crypt.hpp b/Chaos/Cipher/Arc4/Arc4Crypt.hpp index 713e86f..88ce26b 100644 --- a/Chaos/Cipher/Arc4/Arc4Crypt.hpp +++ b/Chaos/Cipher/Arc4/Arc4Crypt.hpp @@ -67,7 +67,7 @@ private: while (count > 0) { - uint64_t keyMaterialBytes = std::min(keyBuf.Size(), count); + uint64_t keyMaterialBytes = std::min(keyBuf.Size(), count); Gen_.Generate(keyBuf.Begin(), keyMaterialBytes); for (auto keyBufIt = keyBuf.Begin();