seq: use consistent output format with hex integers
commit60c8e31d9201f10295cfdcfd2d15893f9682083b
authorPádraig Brady <P@draigBrady.com>
Tue, 23 Jun 2015 21:48:25 +0000 (23 22:48 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 24 Jun 2015 16:03:59 +0000 (24 17:03 +0100)
treee3120ba36f30b691cfab27af0790b38c3882d9be
parentfc6825b231b43c12738fb65a9309cdecb67f6833
seq: use consistent output format with hex integers

* src/seq.c (scan_arg): Set precision to 0 for hex constants
(while avoiding hex floats).  This will use then use the
fast path for these arguments.  Note we also set the precision
of inf to 0 here, which ensures we use consistent precision
on output where possible.
* tests/misc/seq-precision.sh: Add corresponding test cases.
src/seq.c
tests/misc/seq-precision.sh