simon-git: spigot (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sun Apr 10 10:48:13 BST 2016


TL;DR:
  689a6b6 Fix missing sign in printf %f output for numbers in (-1,0).

Repository:     git://git.tartarus.org/simon/spigot.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=spigot.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2016-04-10 10:48:13

commit 689a6b6988d5ba4b95305de542772a1a9d562fe5
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=689a6b6988d5ba4b95305de542772a1a9d562fe5;hp=faa6dc30502d6254645e95c9058eaf93aa2f3830
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Apr 10 10:44:17 2016 +0100

    Fix missing sign in printf %f output for numbers in (-1,0).
    
    The code that prepended the "-" to the 'prefix' string was running too
    late, below the code that output leading zeroes for numbers with an
    exponent less than 0. So by the time "-" got added to prefix, it was
    too late - prefix had already been output without it.

 baseout.cpp |   12 ++++++------
 test.sh     |    1 +
 2 files changed, 7 insertions(+), 6 deletions(-)



More information about the tartarus-commits mailing list