diff options
author | Jeff King <peff@peff.net> | 2013-09-08 04:29:27 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-09 11:04:28 -0700 |
commit | 7192777d226c5b8653c65112a309c2ebd3d6d5c5 (patch) | |
tree | 82c4f56d785f743d59e50f449a10390a91f7c5b7 /t/t4013/diff.whatchanged_-SF_-p_master | |
parent | Git 1.8.4-rc4 (diff) | |
download | tgif-7192777d226c5b8653c65112a309c2ebd3d6d5c5.tar.xz |
config: factor out integer parsing from range checks
When we are parsing integers for config, we use an intmax_t
(or uintmax_t) internally, and then check against the size
of our result type at the end. We can parameterize the
maximum representable value, which will let us re-use the
parsing code for a variety of range checks.
Unfortunately, we cannot combine the signed and unsigned
parsing functions easily, as we have to rely on the signed
and unsigned C types internally.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.whatchanged_-SF_-p_master')
0 files changed, 0 insertions, 0 deletions