Merge branch 'jk/clang-pedantic' into maint
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
This commit is contained in:
@ -1618,7 +1618,7 @@ static void prepare_shallow_update(struct command *commands,
|
||||
continue;
|
||||
si->need_reachability_test[i]++;
|
||||
for (k = 0; k < 32; k++)
|
||||
if (si->used_shallow[i][j] & (1 << k))
|
||||
if (si->used_shallow[i][j] & (1U << k))
|
||||
si->shallow_ref[j * 32 + k]++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user