From 5f6383ca50b9b746217fe4c6ae8274924ec20df1 Mon Sep 17 00:00:00 2001 From: Jacques Germishuys Date: Thu, 8 Mar 2018 08:17:29 +0200 Subject: diff: ensure an unsigned number is shifted --- include/git2/diff.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/git2/diff.h') diff --git a/include/git2/diff.h b/include/git2/diff.h index 99a94bb6d..86009f583 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -200,18 +200,18 @@ typedef enum { /** Use the "patience diff" algorithm */ GIT_DIFF_PATIENCE = (1u << 28), /** Take extra time to find minimal diff */ - GIT_DIFF_MINIMAL = (1 << 29), + GIT_DIFF_MINIMAL = (1u << 29), /** Include the necessary deflate / delta information so that `git-apply` * can apply given diff information to binary files. */ - GIT_DIFF_SHOW_BINARY = (1 << 30), + GIT_DIFF_SHOW_BINARY = (1u << 30), /** Use a heuristic that takes indentation and whitespace into account * which generally can produce better diffs when dealing with ambiguous * diff hunks. */ - GIT_DIFF_INDENT_HEURISTIC = (1 << 31), + GIT_DIFF_INDENT_HEURISTIC = (1u << 31), } git_diff_option_t; /** -- cgit v1.2.1