diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-05-22 16:17:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-23 14:29:53 +0900 |
commit | 43a2dfde76a4a47ffa31be11fd5cd7fe0b57bb84 (patch) | |
tree | c9d4664b2c42adcee4316a92548b40e03cb23baa /refs.c | |
parent | c7599718167de62c437490e9ea300eeb9284a572 (diff) | |
download | git-43a2dfde76a4a47ffa31be11fd5cd7fe0b57bb84.tar.gz |
refs: use `size_t` indexes when iterating over ref transaction updates
Eliminate any chance of integer overflow on platforms where the two
types have different sizes.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -848,7 +848,7 @@ struct ref_transaction *ref_transaction_begin(struct strbuf *err) void ref_transaction_free(struct ref_transaction *transaction) { - int i; + size_t i; if (!transaction) return; |