Skip to content
Myr

Merge branch 'fix-unaligned' of https://github.com/stefano-zanotti-88/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 694b61f, 05b45da · Browse files · 1 file+11 added−1 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+11 added−1 removed

  • other:+11 added−1 removed

1 file+11 added−1 removed

modified:stb_sprintf.h+11 added-1 removed
332 unmodified lines
333 goto schk2;334 if (callback)335 if ((STB_SPRINTF_MIN - (int)(bf - buf)) < 4)336 goto schk1;337 #ifdef STB_SPRINTF_NOUNALIGNED338 if(((stbsp__uintptr)bf) & 3) {339 bf[0] = f[0];340 bf[1] = f[1];341 bf[2] = f[2];342 bf[3] = f[3];343 } else344 #endif345 {337 *(stbsp__uint32 *)bf = v;346 *(stbsp__uint32 *)bf = v;347 }348 bf += 4;349 f += 4;350 }351 }
1494 unmodified lines