Re: [PATCH] decimal_width: avoid integer overflow

2015-02-05 Thread Junio C Hamano
Thanks (and thanks for ungetc one, too). -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] decimal_width: avoid integer overflow

2015-02-05 Thread Jeff King
The decimal_width function originally appeared in blame.c as "lineno_width", and was designed for calculating the print-width of small-ish integer values (line numbers in text files). In ec7ff5b, it was made into a reusable function, and in dc801e7, we started using it to align diffstats. Binary f