diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-01-26 10:51:18 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-26 08:26:06 -0800 |
| commit | 6358da200fffc7f010f079c3f64ed77f10cd751d (patch) | |
| tree | 97aef7f6f6beb3940854c54fdf9f8b974b1f41ac /object-file.h | |
| parent | bd1855b89760cc0f9a185010a0d92d2e11a73132 (diff) | |
| download | git-6358da200fffc7f010f079c3f64ed77f10cd751d.tar.xz | |
odb: fix flags parameter to be unsigned
The `flags` parameter accepted by various `for_each_object()` functions
is a bitfield of multiple flags. Such parameters are typically unsigned
in the Git codebase, but we use `enum odb_for_each_object_flags` in
some places.
Adapt these function signatures to use the correct type.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-file.h')
| -rw-r--r-- | object-file.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/object-file.h b/object-file.h index 42bb50e10c..2acf19fb91 100644 --- a/object-file.h +++ b/object-file.h @@ -47,7 +47,8 @@ void odb_source_loose_reprepare(struct odb_source *source); int odb_source_loose_read_object_info(struct odb_source *source, const struct object_id *oid, - struct object_info *oi, int flags); + struct object_info *oi, + unsigned flags); int odb_source_loose_read_object_stream(struct odb_read_stream **out, struct odb_source *source, |
