Fix 64-bit compile for pointer set
This commit is contained in:
parent
0fbc8bec6f
commit
51415dea6e
4
stb.h
4
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;
|
// but some entries of the list may be invalid;
|
||||||
// test with 'stb_ps_fastlist_valid(x)'
|
// 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
|
#ifdef STB_DEFINE
|
||||||
|
|
||||||
@ -7374,8 +7374,6 @@ typedef struct
|
|||||||
#define GetBucket(p) ((stb_ps_bucket *) ((char *) (p) - STB_ps_bucket))
|
#define GetBucket(p) ((stb_ps_bucket *) ((char *) (p) - STB_ps_bucket))
|
||||||
#define EncodeBucket(p) ((stb_ps *) ((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)
|
static void stb_bucket_free(stb_ps_bucket *b)
|
||||||
{
|
{
|
||||||
free(b);
|
free(b);
|
||||||
|
Loading…
Reference in New Issue
Block a user