Skip to content
Myr

Merge branch 'quell-clang-wcast-align' of https://github.com/a-e-k/stb into work2

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 fad1aa5, 57b9ea6 · Browse files · 2 files+2 added−2 removed
This commit

State

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

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:stb_image_write.h+1 added-1 removed
772 unmodified lines
773//774775#ifndef STBIW_ZLIB_COMPRESS776// stretchy buffer; stbiw__sbpush() == vector<>::push_back() -- stbiw__sbcount() == vector<>::size()777#define stbiw__sbraw(a) ((int *) (a) - 2)777#define stbiw__sbraw(a) ((int *) (void *) (a) - 2)778#define stbiw__sbm(a) stbiw__sbraw(a)[0]779#define stbiw__sbn(a) stbiw__sbraw(a)[1]780781#define stbiw__sbneedgrow(a,n) ((a)==0 || stbiw__sbn(a)+n >= stbiw__sbm(a))
838 unmodified lines
modified:stretchy_buffer.h+1 added-1 removed
186 unmodified lines
187#define stb_sb_count(a) ((a) ? stb__sbn(a) : 0)188#define stb_sb_add(a,n) (stb__sbmaybegrow(a,n), stb__sbn(a)+=(n), &(a)[stb__sbn(a)-(n)])189#define stb_sb_last(a) ((a)[stb__sbn(a)-1])190191#define stb__sbraw(a) ((int *) (a) - 2)191#define stb__sbraw(a) ((int *) (void *) (a) - 2)192#define stb__sbm(a) stb__sbraw(a)[0]193#define stb__sbn(a) stb__sbraw(a)[1]194195#define stb__sbneedgrow(a,n) ((a)==0 || stb__sbn(a)+(n) >= stb__sbm(a))
67 unmodified lines