Merge branch 'po/size-t-for-vs'
On platforms where ulong is shorter than size_t, code paths that shifted 1 or 1U to the left lacked the necessary cast to size_t, which have been corrected. * po/size-t-for-vs: object-file.c: LLP64 compatibility, upcast unity for left shift diffcore-delta.c: LLP64 compatibility, upcast unity for left shift repack.c: LLP64 compatibility, upcast unity for left shift
This commit is contained in:
@ -844,7 +844,7 @@ int cmd_repack(int argc, const char **argv, const char *prefix)
|
||||
fname_old = mkpathdup("%s-%s%s",
|
||||
packtmp, item->string, exts[ext].name);
|
||||
|
||||
if (((uintptr_t)item->util) & (1 << ext)) {
|
||||
if (((uintptr_t)item->util) & ((uintptr_t)1 << ext)) {
|
||||
struct stat statbuffer;
|
||||
if (!stat(fname_old, &statbuffer)) {
|
||||
statbuffer.st_mode &= ~(S_IWUSR | S_IWGRP | S_IWOTH);
|
||||
|
Reference in New Issue
Block a user