OSDN Git Service

Avoid warnings about shifting more bits than we have
authorRon <ron@debian.org>
Fri, 26 Jun 2009 19:14:27 +0000 (04:44 +0930)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jul 2009 00:27:17 +0000 (20:27 -0400)
commit8ee834680d39677a60e26a0de4ece2f0c1ebbde2
treed6e76722bc716e70917af4d3d540164fdf60948e
parent4a758b0f333fc886b2b4ce715cab22027adb03a6
Avoid warnings about shifting more bits than we have

The test here is a constant expression and will compile out.
For platforms that don't need the shift the code gets slightly smaller
and simpler, for those that do the result is unchanged.

Signed-off-by: Ron Lee <ron@debian.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libc/sysdeps/linux/arm/posix_fadvise.c