Skip to content

Commit b4b9fb9

Browse files
committed
Making hash_type size_t on platforms where it is calculated via std::hash
1 parent cadc219 commit b4b9fb9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/inc/sys_string/impl/platforms/android_java.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace sysstr::util
1818
{
1919
using storage_type = char16_t;
2020
using size_type = jsize;
21-
using hash_type = unsigned;
21+
using hash_type = size_t;
2222
using native_handle_type = jstring;
2323

2424
static constexpr size_type max_size = std::numeric_limits<jsize>::max() / sizeof(char16_t);

lib/inc/sys_string/impl/platforms/emscripten_javascript.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace sysstr::util
1818
{
1919
using storage_type = char16_t;
2020
using size_type = size_t;
21-
using hash_type = unsigned;
21+
using hash_type = size_t;
2222

2323
static constexpr size_type max_size = std::numeric_limits<ptrdiff_t>::max() / sizeof(char16_t);
2424
};

lib/inc/sys_string/impl/platforms/unix_generic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace sysstr::util
2020
{
2121
using storage_type = char;
2222
using size_type = size_t;
23-
using hash_type = unsigned;
23+
using hash_type = size_t;
2424

2525
static constexpr size_type max_size = std::numeric_limits<ptrdiff_t>::max() / sizeof(char);
2626
};

lib/inc/sys_string/impl/platforms/windows_generic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace sysstr::util
1919
{
2020
using storage_type = char16_t;
2121
using size_type = size_t;
22-
using hash_type = unsigned;
22+
using hash_type = size_t;
2323

2424
static constexpr size_type max_size = std::numeric_limits<ptrdiff_t>::max() / sizeof(char16_t);
2525
};

0 commit comments

Comments
 (0)