fix uint32_t

This commit is contained in:
chatlanin 2023-05-06 12:47:46 +03:00
parent ce8d0176cb
commit e928735911
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@
#include "iterators/sequence_ostream_iterator.hpp"
#include "iterators/associative_ostream_iterator.hpp"
#include "math/matrix.hpp"
// #include "nlohmann/json.hpp"
namespace hack
{

View File

@ -74,7 +74,7 @@ namespace hack::utils
// switch(case_int("key"))
// case case_int("test"): hack::log()("wow!");
// case case_int("no_test"): hack::log()("wow!");
inline constexpr std::uint32_t case_int(const char* str, std::uint32_t hash = 2166136261UL)
inline constexpr uint32_t case_int(const char* str, uint32_t hash = 2166136261UL)
{
return *str ? case_int(str + 1, (hash ^ *str) * 16777619ULL) : hash;
}