]> git.sur5r.net Git - cc65/commit
Fix casting an r-value to char. 133/head
authorPiotr Fusik <fox@scene.pl>
Mon, 22 Sep 2014 21:47:20 +0000 (23:47 +0200)
committerPiotr Fusik <fox@scene.pl>
Mon, 22 Sep 2014 21:47:20 +0000 (23:47 +0200)
commit8c1f12f06b430cfa5a5bf31fe19ba47090a15745
tree620142edd036b8a6d7576ec71de21f5085e3008b
parentd75f9c205131b800187a28a58577f357a3b233ef
Fix casting an r-value to char.

For example:
int f(int i, int j) { return (char) (i + 1) == j; }
f(0x1234, 0x35) returned 0.

This bug caused zlib/uncompress return Z_DATA_ERROR on correct input.
src/cc65/codegen.c