picojpeg icon indicating copy to clipboard operation
picojpeg copied to clipboard

Fix compiler error that fails to honour post-increment order in inlin…

Open Bodmer opened this issue 2 years ago • 1 comments

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.

Bodmer avatar Feb 24 '22 14:02 Bodmer

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);
            ^                ~~~~~

FREEWING-JP avatar Mar 17 '24 10:03 FREEWING-JP