]> git.neil.brown.name Git - history.git/commit
[PATCH] idmouse min() fix
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Wed, 2 Feb 2005 00:50:07 +0000 (16:50 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 2 Feb 2005 00:50:07 +0000 (16:50 -0800)
commitd15f98e5efd90373c4767dc7f6a95f32c852353d
treedad75b6d927ff01ca44bc7879f7a74062926cda3
parentb0a481c7cb493a21f4f120a0c96465dc0d0406ec
[PATCH] idmouse min() fix

This got caught by gcc on 64bit boxen - IMGSIZE is size_t and that means
range not covered by that of signed 64bit, so we get an unsigned type for
IMGSIZE-*ppos.  On 32bit boxen IMGSIZE-*ppos ends up being loff_t, so the
warning gets silenced.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/usb/misc/idmouse.c