Skip to content

Commit 3425c5d

Browse files
committed
Use alignment constant
1 parent b7c36a8 commit 3425c5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libexpr/include/nix/expr/symbol-table.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public:
268268
callback(sym);
269269
// skip alignment padding
270270
auto n = sym.size() + 1;
271-
left = left.substr(n + (n % 8 ? 8 - (n % 8) : 0));
271+
left = left.substr(n + (n % alignment ? alignment - (n % alignment) : 0));
272272
}
273273
}
274274
};

0 commit comments

Comments
 (0)