You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at line 524 or 526 it complains incompatible pointer to integer conversion initializing 'char' with an expression of type 'char[20]' [-Wint-conversion] when I use stbds_hmget
after I manually adding the missing brackets, it still complains cast to type "char [20]" is not allowed
If I manually force it to not use typeof/__typeof__ at all, it works.
Edit
I think the proper solution is just to not use typeof at all, it's an extension anyway and not part of the standard C, or at least to have another macro to control not using typeof.
Another point here is if anyone use -pedantic for his compiler this extension will not work anyway.
The text was updated successfully, but these errors were encountered:
baronleonardo
changed the title
stb_ds can not handle char[20] as a key
stb_ds hashmap can not handle char[20] as a key
Jul 24, 2024
actually there are two bugs here
at line 524 or 526 it complains
incompatible pointer to integer conversion initializing 'char' with an expression of type 'char[20]' [-Wint-conversion]
when I usestbds_hmget
after I manually adding the missing brackets, it still complains
cast to type "char [20]" is not allowed
If I manually force it to not use
typeof
/__typeof__
at all, it works.Edit
I think the proper solution is just to not use typeof at all, it's an extension anyway and not part of the standard C, or at least to have another macro to control not using typeof.
Another point here is if anyone use -pedantic for his compiler this extension will not work anyway.
The text was updated successfully, but these errors were encountered: