simon-svn: puzzles: simon
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Fri Jul 5 22:54:45 BST 2013
SVN root: svn://svn.tartarus.org/sgt
Changes by: simon
Revision: 9893
Date: 2013-07-05 22:54:45 +0100 (Fri, 05 Jul 2013)
Log message (5 lines):
Stop using a zero precision specifier with sprintf ("%.0d") to cause
zero to be generated as the empty string rather than "0". Instead, do
the job by the obvious approach of not calling sprintf at all if the
number is zero. Works around a bug in Emscripten's C library, whose
sprintf doesn't correctly handle that corner case.
Modified files:
U puzzles/towers.c
Links:
http://svn.tartarus.org/sgt/?rev=9893&view=rev
http://svn.tartarus.org/sgt/puzzles/towers.c?rev=9893&r1=9892&r2=9893
More information about the tartarus-commits
mailing list