picojpeg
picojpeg copied to clipboard
Fix compiler error that fails to honour post-increment order in inlin…
The fix in consistent with other functions.
The problem was corupted images cause by the compiler inlining code and not putting post-inrement in correct place at end of inline code.
It resolved this warning with Clang compiler ! Thank you !
picojpeg/picojpeg.c:1737:13: warning: unsequenced modification and access to 'pDstG' [-Wunsequenced]
*pDstG++ = subAndClamp(pDstG[0], cbG);
^ ~~~~~