1.1 --- a/src/hash_key.c Thu Apr 20 19:13:25 2023 +0200 1.2 +++ b/src/hash_key.c Fri Apr 21 18:38:18 2023 +0200 1.3 @@ -30,7 +30,7 @@ 1.4 #include <string.h> 1.5 1.6 void cx_hash_murmur(CxHashKey *key) { 1.7 - unsigned char const *data = key->data.cbytes; 1.8 + unsigned char const *data = key->data; 1.9 if (data == NULL) { 1.10 // extension: special value for NULL 1.11 key->hash = 1574210520u; 1.12 @@ -83,7 +83,7 @@ 1.13 1.14 CxHashKey cx_hash_key_str(char const *str) { 1.15 CxHashKey key; 1.16 - key.data.cstr = str; 1.17 + key.data = str; 1.18 key.len = str == NULL ? 0 : strlen(str); 1.19 cx_hash_murmur(&key); 1.20 return key; 1.21 @@ -94,7 +94,7 @@ 1.22 size_t len 1.23 ) { 1.24 CxHashKey key; 1.25 - key.data.cbytes = bytes; 1.26 + key.data = bytes; 1.27 key.len = len; 1.28 cx_hash_murmur(&key); 1.29 return key; 1.30 @@ -105,7 +105,7 @@ 1.31 size_t len 1.32 ) { 1.33 CxHashKey key; 1.34 - key.data.cobj = obj; 1.35 + key.data = obj; 1.36 key.len = len; 1.37 cx_hash_murmur(&key); 1.38 return key;