From 51415dea6e790741076857b03a19532619149abf Mon Sep 17 00:00:00 2001 From: Robert Nix Date: Tue, 9 Jun 2015 12:47:50 -0500 Subject: [PATCH] Fix 64-bit compile for pointer set --- stb.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stb.h b/stb.h index bc0114e..24cea76 100644 --- a/stb.h +++ b/stb.h @@ -7353,7 +7353,7 @@ STB_EXTERN void ** stb_ps_fastlist(stb_ps *ps, int *count); // but some entries of the list may be invalid; // test with 'stb_ps_fastlist_valid(x)' -#define stb_ps_fastlist_valid(x) ((unsigned int) (x) > 1) +#define stb_ps_fastlist_valid(x) ((stb_uinta) (x) > 1) #ifdef STB_DEFINE @@ -7374,8 +7374,6 @@ typedef struct #define GetBucket(p) ((stb_ps_bucket *) ((char *) (p) - STB_ps_bucket)) #define EncodeBucket(p) ((stb_ps *) ((char *) (p) + STB_ps_bucket)) -typedef char stb__verify_bucket_heap_size[sizeof(stb_ps_bucket) == 16]; - static void stb_bucket_free(stb_ps_bucket *b) { free(b);