File tree Expand file tree Collapse file tree
src/third-party/notcurses/src/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ terminfo_parse(const char* orig_content, int size)
9191 uint16_t nums_count ;
9292 uint16_t strs_count ;
9393 uint16_t strtab_size ;
94- }* header = content ;
94+ }* header = ( void * ) content ;
9595
9696 if (header -> magic != TERMINFO_MAGIC ) {
9797 return NULL ;
@@ -141,7 +141,7 @@ terminfo_parse(const char* orig_content, int size)
141141 goto error ;
142142 }
143143
144- int16_t * str_offsets = content ;
144+ int16_t * str_offsets = ( int16_t * ) content ;
145145 const char * strtab = content + stroff_size ;
146146
147147 retval -> string_count = header -> strs_count ;
@@ -166,7 +166,7 @@ terminfo_parse(const char* orig_content, int size)
166166 uint16_t strs_count ;
167167 uint16_t strtab_size ;
168168 uint16_t strtab_end ;
169- }* ext_header = content ;
169+ }* ext_header = ( void * ) content ;
170170
171171 if (remaining < sizeof (* ext_header )) {
172172 return retval ;
@@ -207,7 +207,7 @@ terminfo_parse(const char* orig_content, int size)
207207 goto error ;
208208 }
209209
210- int16_t * ext_str_offsets = content ;
210+ int16_t * ext_str_offsets = ( int16_t * ) content ;
211211 const char * ext_strtab = content + ext_stroff_size ;
212212
213213 retval -> ext_string_count = ext_header -> strs_count ;
You can’t perform that action at this time.
0 commit comments