From 23a0f50213c763ebd46f80065be9e2e296ecce6a Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 04:28:48 +0000 Subject: [PATCH] Decompile 2 functions in Source/Utility/Math/Int64Math.cpp Batch #11708 by cremane: 2 byte-identical, 0 confirmed by peer review. - fn_11017 sub_86BF00: byte-identical - fn_11919 MaxInt64: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Utility/Math/Int64Math.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Source/Utility/Math/Int64Math.cpp b/Source/Utility/Math/Int64Math.cpp index a8228299..dd5b4cf3 100644 --- a/Source/Utility/Math/Int64Math.cpp +++ b/Source/Utility/Math/Int64Math.cpp @@ -1,21 +1,15 @@ #include "Utility/Math/Int64Math.h" +#include + // OFFSET: 0x008C6AE0 // FUNCTION: fn_11919 std::int64_t MaxInt64(const std::int64_t& first, const int& second) { - const std::int64_t value = second; - if (first < value) { - return value; - } - return first; + return std::max(first, static_cast(second)); } // OFFSET: 0x0086BF00 // FUNCTION: fn_11017 std::int64_t sub_86BF00(const int& value, const std::int64_t& other) { - const std::int64_t extended = value; - if (other < extended) { - return extended; - } - return other; + return std::max(static_cast(value), other); }