egcpool_extended_gcluster: a warning

This commit is contained in:
nick black 2020-08-14 04:56:11 -04:00 committed by Nick Black
parent 85c2c36a97
commit ce84101939
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;
}
}