diff options
| author | 2025-11-16 00:00:00 +0000 | |
|---|---|---|
| committer | 2025-11-16 00:00:00 +0000 | |
| commit | daeaee2c564caadc62db9e011e4e9c8213aeb005 (patch) | |
| tree | e58b8265e4d6b875674bf05dfd83ecd4d2cab71b /pack_test.go | |
| parent | Ignore error on f.Close() (diff) | |
| signature | ||
Rename ObjType -> ObjectType
Diffstat (limited to 'pack_test.go')
| -rw-r--r-- | pack_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pack_test.go b/pack_test.go index 6ca7e115..e9aac281 100644 --- a/pack_test.go +++ b/pack_test.go @@ -41,7 +41,7 @@ func TestPackSectionInflate(t *testing.T) { body.Release() } -func encodePackHeader(ty ObjType, size int) []byte { +func encodePackHeader(ty ObjectType, size int) []byte { first := byte((ty & 0x7) << 4) first |= byte(size & 0x0f) size >>= 4 |
