From 19bfca8e47e2b011651f23a8312654dc1de6f344 Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Wed, 5 Dec 2012 23:16:18 +0100 Subject: Make bit shift constants unsigned. This is from a contributed patch, probably to fix a compiler warning. --- usbdrv/usbdrv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usbdrv/usbdrv.h b/usbdrv/usbdrv.h index a58c5b2..bc67e8b 100644 --- a/usbdrv/usbdrv.h +++ b/usbdrv/usbdrv.h @@ -401,13 +401,13 @@ extern volatile schar usbRxLen; * about the various methods to define USB descriptors. If you do nothing, * the default descriptors will be used. */ -#define USB_PROP_IS_DYNAMIC (1 << 14) +#define USB_PROP_IS_DYNAMIC (1u << 14) /* If this property is set for a descriptor, usbFunctionDescriptor() will be * used to obtain the particular descriptor. Data directly returned via * usbMsgPtr are FLASH data by default, combine (OR) with USB_PROP_IS_RAM to * return RAM data. */ -#define USB_PROP_IS_RAM (1 << 15) +#define USB_PROP_IS_RAM (1u << 15) /* If this property is set for a descriptor, the data is read from RAM * memory instead of Flash. The property is used for all methods to provide * external descriptors. -- cgit v1.2.3