]> git.ipfire.org Git - thirdparty/systemd.git/commit
macro: sizeof() returns size_t, and that's good
authorLennart Poettering <lennart@poettering.net>
Thu, 29 Jul 2021 15:45:19 +0000 (17:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 30 Jul 2021 13:58:09 +0000 (15:58 +0200)
commit777003365a87aa6656938d0ecca9d54887fefab9
treef158c43048535fb6556a4b6c19c47e3a35e518a8
parentaddae96a1a1f010b5db12cbf8b78719658fcc23b
macro: sizeof() returns size_t, and that's good

Now that CONST_MAX() is a bit more foregiving, let's stick to the native
return type of sizeof() everywhere, which is size_t, instead of casting
to "unsigned", so that on the common archs we don't unnecessarily lose
the upper 32bits.

This semi-reverts d3e40294572512810c9329933a488619e7ce22fd.
src/basic/macro.h