diff options
Diffstat (limited to 'libusb/descriptor.c')
-rw-r--r-- | libusb/descriptor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/descriptor.c b/libusb/descriptor.c index 6cbe23c..da4dbbe 100644 --- a/libusb/descriptor.c +++ b/libusb/descriptor.c @@ -51,7 +51,7 @@ int usbi_parse_descriptor(unsigned char *source, char *descriptor, void *dest, *dp++ = *sp++; break; case 'w': /* 16-bit word, convert from little endian to CPU */ - dp += ((unsigned long)dp & 1); /* Align to word boundary */ + dp += ((uintptr_t)dp & 1); /* Align to word boundary */ if (host_endian) { memcpy(dp, sp, 2); |