diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /games/openmw/files/patch-components_misc_strings_algorithm.hpp | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'games/openmw/files/patch-components_misc_strings_algorithm.hpp')
| -rw-r--r-- | games/openmw/files/patch-components_misc_strings_algorithm.hpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/games/openmw/files/patch-components_misc_strings_algorithm.hpp b/games/openmw/files/patch-components_misc_strings_algorithm.hpp deleted file mode 100644 index c7aa3b1ecfeb..000000000000 --- a/games/openmw/files/patch-components_misc_strings_algorithm.hpp +++ /dev/null @@ -1,28 +0,0 @@ ---- components/misc/strings/algorithm.hpp.orig 2025-07-01 11:41:15 UTC -+++ components/misc/strings/algorithm.hpp -@@ -4,6 +4,7 @@ - #include "lower.hpp" - - #include <algorithm> -+#include <cstdint> - #include <functional> - #include <string> - #include <string_view> -@@ -88,14 +89,14 @@ namespace Misc::StringUtils - constexpr std::size_t operator()(std::string_view str) const - { - // FNV-1a -- std::size_t hash{ 0xcbf29ce484222325ull }; -- constexpr std::size_t prime{ 0x00000100000001B3ull }; -+ std::uint64_t hash{ 0xcbf29ce484222325ull }; -+ constexpr std::uint64_t prime{ 0x00000100000001B3ull }; - for (char c : str) - { -- hash ^= static_cast<std::size_t>(toLower(c)); -+ hash ^= static_cast<std::uint64_t>(toLower(c)); - hash *= prime; - } -- return hash; -+ return static_cast<std::size_t>(hash); - } - }; |
