Commit 04694658 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Willy Tarreau
Browse files

tools/nolibc: sys: avoid implicit sign cast



getauxval() returns an unsigned long but the overall type of the ternary
operator needs to be signed.

Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent 809145f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -466,7 +466,7 @@ static unsigned long getauxval(unsigned long key);
static __attribute__((unused))
int getpagesize(void)
{
	return __sysret(getauxval(AT_PAGESZ) ?: -ENOENT);
	return __sysret((int)getauxval(AT_PAGESZ) ?: -ENOENT);
}