mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
egcpool_extended_gcluster: a warning
This commit is contained in:
parent
85c2c36a97
commit
ce84101939
@ -252,6 +252,7 @@ cell_egc_idx(const cell* c){
|
||||
return c->gcluster & 0x00fffffflu;
|
||||
}
|
||||
|
||||
// only applies to complex cells, do not use on simple cells
|
||||
__attribute__ ((__returns_nonnull__)) static inline const char*
|
||||
egcpool_extended_gcluster(const egcpool* pool, const cell* c) {
|
||||
uint32_t idx = cell_egc_idx(c);
|
||||
|
@ -510,8 +510,7 @@ term_putc(FILE* out, const egcpool* e, const cell* c){
|
||||
return -1;
|
||||
}
|
||||
}else{
|
||||
const char* ext = egcpool_extended_gcluster(e, c);
|
||||
if(ncfputs(ext, out) == EOF){
|
||||
if(ncfputs(egcpool_extended_gcluster(e, c), out) == EOF){
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user