summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2020-02-23 23:24:27 +0000
committerlhchavez <[email protected]>2020-02-23 15:32:29 -0800
commit93c4c5b30a73a587efd2f5bc1f33d0ef8cec6950 (patch)
tree2ea2d71ace717527b7a26862e559873623076816
parent91946a570500bc441be0aea4603a5c83f81e22a4 (diff)
Fix the DiffFlag type
This change makes the underlying type of DiffFlag be uint32 instead of int. That makes it possible to build on 32-bit systems. Fixes: #487
-rw-r--r--diff.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.go b/diff.go
index ed2949c..0939435 100644
--- a/diff.go
+++ b/diff.go
@@ -14,7 +14,7 @@ import (
"unsafe"
)
-type DiffFlag int
+type DiffFlag uint32
const (
DiffFlagBinary DiffFlag = C.GIT_DIFF_FLAG_BINARY