Make sure the double is cast to a long if the format string is %D, %O, %U.
authortb <tb@openbsd.org>
Fri, 15 Dec 2017 12:17:49 +0000 (12:17 +0000)
committertb <tb@openbsd.org>
Fri, 15 Dec 2017 12:17:49 +0000 (12:17 +0000)
commitbf0ce9fc072fd61e108eb043ad64ef3f3c83fdeb
tree4eba489d947b0449dad9a96ecdf8d72dd3a4f88d
parentb4fdc7addcc484fca0b2ce9fd522ea5725e7bf26
Make sure the double is cast to a long if the format string is %D, %O, %U.
Fixes output of e.g. 'jot -w %D 11 -5'.

ok martijn
usr.bin/jot/jot.c