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 @@ -167,7 +167,7 @@ terminfo_parse(const char* orig_content, int size)
167167 retval -> number_count = header -> nums_count ;
168168 retval -> numbers = malloc (header -> nums_count * sizeof (int32_t ));
169169 if (num_size == 2 ) {
170- int16_t * nums = content ;
170+ int16_t * nums = ( int16_t * ) content ;
171171 for (int lpc = 0 ; lpc < header -> nums_count ; lpc ++ ) {
172172 retval -> numbers [lpc ] = nums [lpc ];
173173 }
@@ -238,7 +238,7 @@ terminfo_parse(const char* orig_content, int size)
238238 retval -> ext_number_count = ext_header -> nums_count ;
239239 retval -> ext_numbers = malloc (ext_header -> nums_count * sizeof (int32_t ));
240240 if (num_size == 2 ) {
241- int16_t * nums = content ;
241+ int16_t * nums = ( int16_t * ) content ;
242242 for (int lpc = 0 ; lpc < ext_header -> nums_count ; lpc ++ ) {
243243 retval -> ext_numbers [lpc ] = nums [lpc ];
244244 }
You can’t perform that action at this time.
0 commit comments