aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-28 08:00:00 +0800
committerGravatar Runxi Yu2025-11-28 08:00:00 +0800
commitd3eaa1808fe1aeaa316d81fcde6ebb6079a3980e (patch)
treea709b41eca77dc6dc9d34a447aa1143ee328fd55
parentzlibx: Add more comprehensive tests (diff)
signatureNo signature
hash: data after size
This guarantees ... I guess ABI stability of where the size is, regardless of the version which may have different maxHashSize. Not too useful but I guess good practice
-rw-r--r--hash.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.go b/hash.go
index 068eb840..3edb6079 100644
--- a/hash.go
+++ b/hash.go
@@ -10,8 +10,8 @@ const maxHashSize = 32
// Hash represents a Git object ID.
type Hash struct {
- data [maxHashSize]byte
size int
+ data [maxHashSize]byte
}
// hashFunc is a function that computes a hash from input data.