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: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Willy Tarreau <w@1wt.eu>
This commit is contained in:
parent
809145f842
commit
04694658ad
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user