aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20_ugen20.c
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2012-04-20 14:29:45 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2012-04-20 14:29:45 +0000
commitd81535d1f9a824d38814cef6af3aa0267741a99f (patch)
tree7bba82ab4db6a05960a26e4d19378f7bd40ea21c /lib/libusb/libusb20_ugen20.c
parentdd952f80bc74a4803ce96737608cdcde379c2186 (diff)
downloadsrc-d81535d1f9a824d38814cef6af3aa0267741a99f.tar.gz
src-d81535d1f9a824d38814cef6af3aa0267741a99f.zip
Fix some compile warnings.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=234491
Diffstat (limited to 'lib/libusb/libusb20_ugen20.c')
-rw-r--r--lib/libusb/libusb20_ugen20.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libusb/libusb20_ugen20.c b/lib/libusb/libusb20_ugen20.c
index 307ed96d2274..17c948b4ac38 100644
--- a/lib/libusb/libusb20_ugen20.c
+++ b/lib/libusb/libusb20_ugen20.c
@@ -104,7 +104,7 @@ ugen20_path_convert_one(const char **pp)
temp += (*ptr - '0');
if (temp >= 1000000) {
/* catch overflow early */
- return (0 - 1);
+ return (0xFFFFFFFF);
}
ptr++;
}