Skip to content

Commit f4a3dd4

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: #487 (cherry picked from commit 93c4c5b)
1 parent 1c82797 commit f4a3dd4

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)