diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-03-10 08:13:30 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-03-10 13:16:20 -0700 |
| commit | 8ca9fa60a63c97bb9397f5de294aef53df90e7a0 (patch) | |
| tree | b1ee7b6f1abf0d028abcbbca0486db6d3d46de27 /hash.h | |
| parent | 172d0f686b07a73cba2d307b2abf08e2819a77e1 (diff) | |
| download | git-8ca9fa60a63c97bb9397f5de294aef53df90e7a0.tar.xz | |
hash: fix "-Wsign-compare" warnings
There are a couple of trivial "-Wsign-compare" warnings in "hash.c". Fix
them.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hash.h')
| -rw-r--r-- | hash.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -325,7 +325,7 @@ int hash_algo_by_name(const char *name); /* Identical, except based on the format ID. */ int hash_algo_by_id(uint32_t format_id); /* Identical, except based on the length. */ -int hash_algo_by_length(int len); +int hash_algo_by_length(size_t len); /* Identical, except for a pointer to struct git_hash_algo. */ static inline int hash_algo_by_ptr(const struct git_hash_algo *p) { |
