]> granicus.if.org Git - strace/commit
Make sure current_wordsize and PERSONALITY0_WORDSIZE are ints in all arches
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 15 May 2012 12:28:56 +0000 (14:28 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 15 May 2012 12:28:56 +0000 (14:28 +0200)
commitc52826c267aaca5c976b10e13ee6debc0bdf3f43
tree7b4d884aafd50a0c7fbc1ee8bcbd52fef4c814d5
parentd376c92a91c0b9fad79171abd7c50c1fc8976262
Make sure current_wordsize and PERSONALITY0_WORDSIZE are ints in all arches

On 64bit systems with a single personality, they used to be sizeof(long),
which has type "long", not "int", which complicates printf formats.

* defs.h: Ensure that PERSONALITY0_WORDSIZE;s tyoe is int.
This in turn makes sure current_wordsize is also an int.
* count.c (call_summary): Revert the change which added cast to int.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
count.c
defs.h