Bug#303827: mawk: printf %x clamps numbers to range of signed int rather than unsigned int

2010-03-01 Thread Jonathan Nieder
Hi Adam, Adam M. Costello wrote: The printf %x conversion is supposed to treat its argument as an unsigned int (see printf(3)). But look at what mawk does: $ mawk 'END { printf(%x %x\n, 2e9, 3e9) }' /dev/null 77359400 7fff Compare that to gawk: $ gawk 'END { printf(%x %x\n,

Bug#303827: mawk: printf %x clamps numbers to range of signed int rather than unsigned int

2005-04-08 Thread Adam M. Costello
Package: mawk Version: 1.3.3-11 Severity: normal [Sorry if this is a duplicate. I'm not sure whether my first attempt got through.] The printf %x conversion is supposed to treat its argument as an unsigned int (see printf(3)). But look at what mawk does: $ mawk 'END { printf(%x %x\n, 2e9,