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
This commit is contained in:
lhchavez 2020-02-23 23:24:27 +00:00
parent 91946a5705
commit 93c4c5b30a
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ import (
"unsafe" "unsafe"
) )
type DiffFlag int type DiffFlag uint32
const ( const (
DiffFlagBinary DiffFlag = C.GIT_DIFF_FLAG_BINARY DiffFlagBinary DiffFlag = C.GIT_DIFF_FLAG_BINARY