diff --git a/poliqarp-library/sakura/backend-base.h b/poliqarp-library/sakura/backend-base.h index 3cd81f8165a758f58bae4e4ff3a64a261e9ed1d0..250be09ab85f101afa742410676e00ca62fc990a 100644 --- a/poliqarp-library/sakura/backend-base.h +++ b/poliqarp-library/sakura/backend-base.h @@ -70,14 +70,14 @@ static inline const char *poliqarp_backend_base_fetch__disamb( const struct poliqarp_backend_base *this, size_t key) { assert(key < this->dict_disamb.num_items); - return GET_ITEM(&this->dict_disamb, key); + return (const char*) GET_ITEM(&this->dict_disamb, key); } static inline const char *poliqarp_backend_base_fetch__amb( const struct poliqarp_backend_base *this, size_t key) { assert(key < this->dict_amb.num_items); - return GET_ITEM(&this->dict_amb, key); + return (const char*) GET_ITEM(&this->dict_amb, key); } static inline size_t poliqarp_backend_base_length__disamb( diff --git a/poliqarp-library/sakura/backend-interp.h b/poliqarp-library/sakura/backend-interp.h index 848edcfbab338b3c29489e0d6cc9b6c38665a972..9be605e400d9269c9525f3d712e375e2c4c19d16 100644 --- a/poliqarp-library/sakura/backend-interp.h +++ b/poliqarp-library/sakura/backend-interp.h @@ -77,7 +77,7 @@ poliqarp_backend_interp_fetch__disamb( const struct poliqarp_backend_interp *this, size_t key) { assert(key < this->dict__disamb.num_items); - return GET_ITEM(&this->dict__disamb, key); + return (struct poliqarp_binary_interp*) GET_ITEM(&this->dict__disamb, key); } /** @@ -109,7 +109,7 @@ poliqarp_backend_interp_fetch__amb( const struct poliqarp_backend_interp *this, size_t key) { assert(key < this->dict__amb.num_items); - return GET_ITEM(&this->dict__amb, key); + return (struct poliqarp_binary_interp*) GET_ITEM(&this->dict__amb, key); } /** diff --git a/poliqarp-library/sakura/backend-meta.h b/poliqarp-library/sakura/backend-meta.h index bcfe1d78be129d8316a6b4c485fffe8419ad1b3b..d2260a14b97a8c0e2416053e9887e2cc77da038c 100644 --- a/poliqarp-library/sakura/backend-meta.h +++ b/poliqarp-library/sakura/backend-meta.h @@ -85,14 +85,14 @@ static inline const char *poliqarp_backend_meta_key_fetch( const struct poliqarp_backend_meta *this, size_t index) { assert(index < this->key.num_items); - return GET_ITEM(&this->key, index); + return (const char*) GET_ITEM(&this->key, index); } static inline const char *poliqarp_backend_meta_value_fetch( const struct poliqarp_backend_meta *this, size_t index) { assert(index < this->value.num_items); - return GET_ITEM(&this->value, index); + return (const char*) GET_ITEM(&this->value, index); } static inline struct poliqarp_binary_metadata poliqarp_backend_meta_fetch( diff --git a/poliqarp-library/sakura/backend-orth.h b/poliqarp-library/sakura/backend-orth.h index cf3006bc69fc244c885ea24c301fca52cb4fd1ee..14cda8b361fffafa6bcf10cb17a31784d6a280bb 100644 --- a/poliqarp-library/sakura/backend-orth.h +++ b/poliqarp-library/sakura/backend-orth.h @@ -58,7 +58,7 @@ static inline const char *poliqarp_backend_orth_fetch( const struct poliqarp_backend_orth *this, size_t key) { assert(key < this->dict.num_items); - return GET_ITEM(&this->dict, key); + return (const char*) GET_ITEM(&this->dict, key); } static inline size_t poliqarp_backend_orth_length( diff --git a/poliqarp-library/sakura/backend-tag.h b/poliqarp-library/sakura/backend-tag.h index d8ecd5b48ad461cd939a75d61aa2d8df4f7fd32e..8889f044178cf48b245d97ef121ac3a99b3aee6e 100644 --- a/poliqarp-library/sakura/backend-tag.h +++ b/poliqarp-library/sakura/backend-tag.h @@ -71,7 +71,7 @@ static inline const char *poliqarp_backend_tag_fetch( const struct poliqarp_backend_tag *this, size_t key) { assert(key < this->dict.num_items); - return GET_ITEM(&this->dict, key); + return (const char*) GET_ITEM(&this->dict, key); } static inline const struct poliqarp_parsed_tag *poliqarp_backend_parsed_tag_fetch(