fix up compilation on freebsd #1644

pull/1640/head
nick black 3 years ago
parent af1641be4e
commit d441dd4d0d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -133,7 +133,8 @@ sprixel* sprixel_alloc(ncplane* n, int dimy, int dimx){
ret->dimx = dimx;
ret->id = ++sprixelid_nonce;
if(ret->id >= 0x1000000){
ret->id = sprixelid_nonce = 1;
ret->id = 1;
sprixelid_nonce = 1;
}
//fprintf(stderr, "LOOKING AT %p (p->n = %p)\n", ret, ret->n);
if(ncplane_pile(ret->n)){

Loading…
Cancel
Save