Skip to content
Myr

Merge branch 'fix-clang-warnings' of https://github.com/vincentisambart/stb into working

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parents b0852b7, 09e1972 · Browse files · 1 file+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−6 removed

  • other:+6 added−6 removed

1 file+6 added−6 removed

modified:stb.h+6 added-6 removed
3009 unmodified lines
3010#ifdef STB_DEBUG3011#define stb_arr_check(a) assert(!a || stb_arrhead(a)->signature == stb_arr_signature)3012#define stb_arr_check2(a) assert(!a || stb_arrhead2(a)->signature == stb_arr_signature)3013#else3014#define stb_arr_check(a) 03015#define stb_arr_check2(a) 03014#define stb_arr_check(a) ((void) 0)3015#define stb_arr_check2(a) ((void) 0)3016#endif30173018// ARRAY LENGTH3019
314 unmodified lines
3334}33353336unsigned int stb_rehash_improved(unsigned int v)3337{3338 return stb_hashptr((void *) v);3338 return stb_hashptr((void *)(size_t) v);3339}33403341unsigned int stb_hash2(char *str, unsigned int *hash2_ptr)3342{
7112 unmodified lines
1045510456////////////////////// streaming I/O version /////////////////////104571045810459static stb_uint stb_out_backpatch_id(void)10459static size_t stb_out_backpatch_id(void)10460{10461 if (stb__out)10462 return (stb_uint) stb__out;10462 return (size_t) stb__out;10463 else10464 return ftell(stb__outfile);10465}1046610467static void stb_out_backpatch(stb_uint id, stb_uint value)10467static void stb_out_backpatch(size_t id, stb_uint value)10468{10469 stb_uchar data[4] = { value >> 24, value >> 16, value >> 8, value };10470 if (stb__out) {10471 memcpy((void *) id, data, 4);
3664 unmodified lines