cell_load_simple: need an ntole() #906

pull/966/head
nick black 4 years ago
parent de3737e8e1
commit 9f84c1524e
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -736,7 +736,7 @@ static inline int
cell_load_simple(struct ncplane* n, cell* c, char ch){
cell_release(n, c);
c->channels &= ~(CELL_WIDEASIAN_MASK | CELL_NOBACKGROUND_MASK);
c->gcluster = ch;
c->gcluster = ntole((uint32_t)ch);
return 1;
}

@ -597,7 +597,7 @@ pool_release(egcpool* pool, cell* c){
// set the cell 'c' to point into the egcpool at location 'eoffset'
static inline void
set_gcluster_egc(cell* c, int eoffset){
c->gcluster = htonl(0x01ul) + eoffset;
c->gcluster = ntole(0x01000000ul) + eoffset;
}
// Duplicate one cell onto another, possibly crossing ncplanes.

Loading…
Cancel
Save