Skip to content

Commit 93c4c5b

Browse files
committed
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: libgit2#487
1 parent 91946a5 commit 93c4c5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"unsafe"
1515
)
1616

17-
type DiffFlag int
17+
type DiffFlag uint32
1818

1919
const (
2020
DiffFlagBinary DiffFlag = C.GIT_DIFF_FLAG_BINARY

0 commit comments

Comments
 (0)