Merge branch 'js/close-packs-before-gc' into maint
[gitweb.git] / builtin / receive-pack.c
index b3104433ed6923600f3874ae564c9d04f9a9dcd2..f2d6761af66c8bcc43c2da13f69fa083cf1e1e60 100644 (file)
@@ -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]++;
                }