From 1086f8075de19eb62fe3407a01bc2c2f353a2f93 Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylo-work@users.noreply.github.com> Date: Tue, 24 Mar 2020 19:27:26 +0100 Subject: Add files via upload Fix --- c_lib/cstring.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'c_lib/cstring.h') diff --git a/c_lib/cstring.h b/c_lib/cstring.h index 1bcd3d61..869c7d5a 100644 --- a/c_lib/cstring.h +++ b/c_lib/cstring.h @@ -241,8 +241,9 @@ static inline CString cstring_temp(const char* str) { // CVector / CMap API functions: -#define cstring_getRaw(x) ((x)->str) -static inline uint32_t cstring_hashRaw(const char** str, size_t sz_ignored) { return c_defaultHash(*str, strlen(*str)); } +#define cstring_getRaw(x) (&(x)->str) +#define cstring_compareRaw(x, y) strcmp(*(x), *(y)) +static inline uint32_t cstring_hashRaw(const char* const* str, size_t ignored) { return c_defaultHash(*str, strlen(*str)); } #endif -- cgit v1.2.3