diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2012-12-05 23:16:18 +0100 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2012-12-05 23:16:18 +0100 |
commit | 19bfca8e47e2b011651f23a8312654dc1de6f344 (patch) | |
tree | cc7f7daf56fefa9078c16d6b16e48f30055b08d4 /usbdrv/usbdrv.h | |
parent | c7b27a11b6753a852b9a03f894215485597ba34f (diff) | |
download | v-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.
Diffstat (limited to 'usbdrv/usbdrv.h')
-rw-r--r-- | usbdrv/usbdrv.h | 4 |
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. |