diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-01-20 11:43:29 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-01-20 11:43:29 -0800 |
commit | a736764a7b61534581021a21bc6bfc503b9cfa8f (patch) | |
tree | afc0d6affb5a41ef36c169200c17deadbc4d0ff8 /diff.h | |
parent | 63aeeba99380cdf3b738ff10d3ab80f19286fcd1 (diff) | |
parent | a0df2e5a7efe90e932af66e70ba6c863a5826833 (diff) | |
download | git-a736764a7b61534581021a21bc6bfc503b9cfa8f.tar.gz |
Merge branch 'jk/clang-pedantic'
A few unportable C construct have been spotted by clang compiler
and have been fixed.
* jk/clang-pedantic:
bswap: add NO_UNALIGNED_LOADS define
avoid shifting signed integers 31 bits
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -91,7 +91,7 @@ typedef struct strbuf *(*diff_prefix_fn_t)(struct diff_options *opt, void *data) #define DIFF_OPT_DIRSTAT_BY_LINE (1 << 28) #define DIFF_OPT_FUNCCONTEXT (1 << 29) #define DIFF_OPT_PICKAXE_IGNORE_CASE (1 << 30) -#define DIFF_OPT_DEFAULT_FOLLOW_RENAMES (1 << 31) +#define DIFF_OPT_DEFAULT_FOLLOW_RENAMES (1U << 31) #define DIFF_OPT_TST(opts, flag) ((opts)->flags & DIFF_OPT_##flag) #define DIFF_OPT_TOUCHED(opts, flag) ((opts)->touched_flags & DIFF_OPT_##flag) |