[sprixel] kill FIXME, make sprixelid_nonce atomic

This commit is contained in:
nick black 2021-04-30 02:46:50 -04:00 committed by Nick Black
parent b0a3c12f9b
commit 9a1499bd02

View File

@ -1,8 +1,8 @@
#include "internal.h"
#include "visual-details.h"
#include <stdatomic.h>
// 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",