]> git.ipfire.org Git - thirdparty/git.git/commit
ref-filter: switch some uses of unsigned long to size_t
authorbrian m. carlson <sandals@crustytoothpaste.net>
Mon, 18 Jan 2021 23:49:10 +0000 (23:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Jan 2021 01:38:19 +0000 (17:38 -0800)
commit83dff3eb2ed9cd750ec89f3dc5bab44b16119743
tree179e812a11ff8c2331f4849261f7bc5924666574
parent72c4083ddf91b489b7b7b812df67ee8842177d98
ref-filter: switch some uses of unsigned long to size_t

In the future, we'll want to pass some of the arguments of find_subpos
to strbuf_detach, which takes a size_t.  This is fine on systems where
that's the same size as unsigned long, but that isn't the case on all
systems.  Moreover, size_t makes sense since it's not possible to use a
buffer here that's larger than memory anyway.

Let's switch each use to size_t for these lengths in
grab_sub_body_contents and find_subpos.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c