]> diplodocus.org Git - nmh/commit
Fix bug in cpnumber().
authorKen Hornstein <kenh@pobox.com>
Thu, 17 Aug 2017 05:24:08 +0000 (01:24 -0400)
committerKen Hornstein <kenh@pobox.com>
Thu, 17 Aug 2017 05:24:08 +0000 (01:24 -0400)
commit58fa16ef1e6d6c3a698d220409416bccec187287
tree392efb9f70e9ea09f0df706ee869e51e7808a680
parentb7a676587f92187d2270be73a1ede5be0af9f104
Fix bug in cpnumber().

The cpnumber() function (which handles the NUMF instruction, among others)
would hang if a 0 width was given to it.  Make sure that (and negative
widths) are handled correctly.  Note that normally NUMF did not handle
left padding which is indicated by a negative width; that may change
in the future.
sbr/fmt_scan.c