mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
cell_simple_p(): endianness fix #906
This commit is contained in:
parent
4c04e1d50e
commit
ee649ba0fa
@ -256,7 +256,7 @@ cell_egc_idx(const cell* c){
|
||||
// Is the cell simple (a UTF8-encoded EGC of four bytes or fewer)?
|
||||
static inline bool
|
||||
cell_simple_p(const cell* c){
|
||||
return (c->gcluster >> 24u) != 0x01;
|
||||
return ((const unsigned char*)&c->gcluster)[0] != 0x01;
|
||||
}
|
||||
|
||||
// only applies to complex cells, do not use on simple cells
|
||||
|
Loading…
x
Reference in New Issue
Block a user