]> granicus.if.org Git - libjpeg-turbo/commit
When building libjpeg-turbo on Un*x systems, INT32 is usually typedef'ed to long...
authorDRC <dcommander@users.sourceforge.net>
Thu, 4 Sep 2014 17:35:22 +0000 (17:35 +0000)
committerDRC <dcommander@users.sourceforge.net>
Thu, 4 Sep 2014 17:35:22 +0000 (17:35 +0000)
commitbbd9b7117192e590b5fdec1aa0a8f0b11244a4cc
treed49ee204499a6a76908bd1ad599e397dfc13db6a
parent1d4c51a0ac524f8fead31a64be4796adada72d3a
When building libjpeg-turbo on Un*x systems, INT32 is usually typedef'ed to long, not int, so we need to specify an int pointer when doing a 4-byte write to the RGB565 output buffer.  On little endian systems, this doesn't matter, but when you write a 32-bit int to a 64-bit long pointer address on a big endian system, you are writing to the upper 4 bytes, not the lower 4 bytes.  NOTE: this will probably break on big endian systems that use 16-bit ints (are there any of those still around?)

This patch also removes an unneeded macro from jdmerge.c.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1403 632fc199-4ca6-4c93-a231-07263d6284db
jdcolor.c
jdmerge.c