mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue