From: Peter O. <obe...@us...> - 2010-07-19 12:12:54
|
Update of /cvsroot/ltp/utils/analysis/lcov/bin In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv23179 Modified Files: genhtml Log Message: genhtml: fix large numbers being shown as negative in html output genhtml uses a "%d" format string for printing execution counts. For counts exceeding integer range, the output becomes negative. Fix this by using the "%.0f" format string instead. Reported by kky...@ya.... Index: genhtml =================================================================== RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/genhtml,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** genhtml 29 Jan 2010 11:07:25 -0000 1.47 --- genhtml 19 Jul 2010 12:12:43 -0000 1.48 *************** *** 3845,3849 **** my $exp; ! $result = sprintf("%*d", $width, $count); while (length($result) > $width) { last if ($count < 10); --- 3845,3849 ---- my $exp; ! $result = sprintf("%*.0f", $width, $count); while (length($result) > $width) { last if ($count < 10); |