fix up compilation on freebsd #1644

This commit is contained in:
nick black 2021-05-09 23:18:15 -04:00
parent af1641be4e
commit d441dd4d0d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

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