diff --git a/src/lib/sprite.c b/src/lib/sprite.c index 997ad2f87..74c747bec 100644 --- a/src/lib/sprite.c +++ b/src/lib/sprite.c @@ -1,8 +1,8 @@ #include "internal.h" #include "visual-details.h" +#include -// FIXME needs be atomic -static uint32_t sprixelid_nonce; +static atomic_uint_fast32_t sprixelid_nonce; void sprixel_debug(FILE* out, const sprixel* s){ fprintf(out, "Sprixel %d (%p) %dx%d (%dx%d) @%d/%d state: %d\n",