From 26397cdaeae152bebe55b48c1f2440b98566f664 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 (cherry picked from commit 93c4c5b30a73a587efd2f5bc1f33d0ef8cec6950) --- diff.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff.go b/diff.go index 6be8f5b..9b3b278 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