Skip to content

Commit

Permalink
c++ compilation error with TB_OPT_EGC defined
Browse files Browse the repository at this point in the history
  • Loading branch information
korei999 authored and adsr committed Jan 18, 2025
1 parent 9b5a5da commit 19ad32d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion termbox2.h
Original file line number Diff line number Diff line change
Expand Up @@ -3340,7 +3340,7 @@ static int cell_reserve_ech(struct tb_cell *cell, size_t n) {
if (cell->cech >= n) {
return TB_OK;
}
if (!(cell->ech = tb_realloc(cell->ech, n * sizeof(cell->ch)))) {
if (!(cell->ech = (uint32_t*)tb_realloc(cell->ech, n * sizeof(cell->ch)))) {
return TB_ERR_MEM;
}
cell->cech = n;
Expand Down

0 comments on commit 19ad32d

Please sign in to comment.