aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2012-12-05 23:16:18 +0100
committerChristian Starkjohann <cs+github@obdev.at>2012-12-05 23:16:18 +0100
commit19bfca8e47e2b011651f23a8312654dc1de6f344 (patch)
treecc7f7daf56fefa9078c16d6b16e48f30055b08d4
parentc7b27a11b6753a852b9a03f894215485597ba34f (diff)
downloadv-usb-19bfca8e47e2b011651f23a8312654dc1de6f344.tar.gz
v-usb-19bfca8e47e2b011651f23a8312654dc1de6f344.tar.bz2
v-usb-19bfca8e47e2b011651f23a8312654dc1de6f344.zip
Make bit shift constants unsigned.
This is from a contributed patch, probably to fix a compiler warning.
-rw-r--r--usbdrv/usbdrv.h4
1 files 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.