]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-cpu-set-util: fix comparison for allocation size
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 4 Jun 2019 07:19:04 +0000 (09:19 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 4 Jun 2019 07:23:34 +0000 (09:23 +0200)
commita299ce058b41b21c87f36e77e2c563b0ddd1be0d
tree4864a4291ff6e5db4e35e1172a4a6e9e404a58b3
parent37dc34f70292e5d0516ce15f1df986d9e52a95e2
test-cpu-set-util: fix comparison for allocation size

On i386, __cpu_mask is 4 bytes, so we'd check if c.allocated >= 0, and
gcc would warn about a bogus comparison. Let's round up.

Fixes #12726.
src/test/test-cpu-set-util.c