diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2014-11-26 16:49:39 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2014-11-26 16:49:39 +0100 |
commit | bb90caec1be476ce4093e72029537c8ccd38f5b3 (patch) | |
tree | b2f851519a6c80a2a9ebe98d389602cb2dfd4d31 /src/operations.c | |
parent | c86e130ab1af4b6161b2a71a2449d2e02109800f (diff) | |
download | 0xFFFF-bb90caec1be476ce4093e72029537c8ccd38f5b3.tar.bz2 |
all: Fix overflow in shift operators
Diffstat (limited to 'src/operations.c')
-rw-r--r-- | src/operations.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/operations.c b/src/operations.c index 85d1e3d..59bf212 100644 --- a/src/operations.c +++ b/src/operations.c @@ -180,7 +180,7 @@ int dev_flash_image(struct device_info * dev, struct image * image) { usb_switch_to_update(dev->usb); return -EAGAIN; } else if ( protocol == FLASH_MKII ) { - if ( dev->usb->data & (1 << image->type) ) + if ( dev->usb->data & (1UL << image->type) ) return mkii_flash_image(dev->usb, image); } |