From 93c4c5b30a73a587efd2f5bc1f33d0ef8cec6950 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Sun, 23 Feb 2020 23:24:27 +0000 Subject: [PATCH] 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 --- diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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