let h_stringmap_get_char return the proper type

This commit is contained in:
Sven M. Hallberg 2013-05-24 04:32:14 +02:00
parent 81e0ffed1d
commit c6d3bc7fd5

View file

@ -50,7 +50,7 @@ void *h_stringmap_get(const HCFStringMap *m, const uint8_t *str, size_t n, bool
bool h_stringmap_present(const HCFStringMap *m, const uint8_t *str, size_t n, bool end);
bool h_stringmap_present_epsilon(const HCFStringMap *m);
static inline void *h_stringmap_get_char(const HCFStringMap *m, const uint8_t c)
static inline HCFStringMap *h_stringmap_get_char(const HCFStringMap *m, const uint8_t c)
{ return h_hashtable_get(m->char_branches, (void *)char_key(c)); }