fix s390x build failure on debian due to wrong type casting
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Wed, 24 Jun 2015 21:50:52 +0000 (23:50 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Wed, 24 Jun 2015 21:58:27 +0000 (23:58 +0200)
commit5520a0b23027ab60ed0b52a7d3841101b1ae68f3
tree940488af1c40487789be4dc6596ce9b8b37d6984
parent2352789a3250e11e0f5d2fd35a319c8de502a926
fix s390x build failure on debian due to wrong type casting

    The problem showed up on s390x for the 0.8.5 debian version
    where four graph tests using pdf export failed with the same assertion. The
    problem is due to wrong casting. intptr_t is long int (64 Bit) on s390x
    but nl_langinfo returns 0xd200000000 on s390x where 0 is the integer result.
    This results in wrong but positive height and width values for the paper size.
src/output/measure.c