diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2010-08-14 14:34:36 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2010-08-14 14:34:36 +0000 |
commit | 5a56d7a540f54ef7f6880bd2c18aea3c53d70c05 (patch) | |
tree | 3912e410a36665aed3e26f82a0a8629ee8057392 /libutil/gr_util.c | |
parent | a8f36331941fca2350e8f1e0758d6594dbe6b1e0 (diff) | |
download | pw-darwin-5a56d7a540f54ef7f6880bd2c18aea3c53d70c05.tar.gz pw-darwin-5a56d7a540f54ef7f6880bd2c18aea3c53d70c05.tar.zst pw-darwin-5a56d7a540f54ef7f6880bd2c18aea3c53d70c05.zip |
Simplify expand_number() by combining the (unrolled) loop with the
switch. Since expand_number() does not accept negative numbers, switch
from int64_t to uint64_t; this makes it easier to check for overflow.
MFC after: 3 weeks
Diffstat (limited to 'libutil/gr_util.c')
0 files changed, 0 insertions, 0 deletions