egcpool_extended_gcluster: a warning

pull/893/head
nick black 4 years ago committed by Nick Black
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…
Cancel
Save