Skip to content

Commit bbc4977

Browse files
committed
local-derivation-goal: fix sized comparison when checking sandbox profile length
1 parent 681d7f7 commit bbc4977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstore/unix/build/local-derivation-goal.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2235,7 +2235,7 @@ void LocalDerivationGoal::runChild()
22352235
// We create multiple allow lists, to avoid exceeding a limit in the darwin sandbox interpreter.
22362236
// See https://github.com/NixOS/nix/issues/4119
22372237
// We split our allow groups approximately at half the actual limit, 1 << 16
2238-
const int breakpoint = sandboxProfile.length() + (1 << 14);
2238+
const size_t breakpoint = sandboxProfile.length() + (1 << 14);
22392239
for (auto & i : pathsInChroot) {
22402240

22412241
if (sandboxProfile.length() >= breakpoint) {

0 commit comments

Comments
 (0)