git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
media: don't do a 31 bit shift on a signed int
[sfrench/cifs-2.6.git]
/
drivers
/
media
/
v4l2-core
/
v4l2-ioctl.c
diff --git
a/drivers/media/v4l2-core/v4l2-ioctl.c
b/drivers/media/v4l2-core/v4l2-ioctl.c
index 39f10621c91bb84c1471a1b71f7298f7a6f25f35..51b912743f0f4f6f1e8909af53695fcbdb4e61be 100644
(file)
--- a/
drivers/media/v4l2-core/v4l2-ioctl.c
+++ b/
drivers/media/v4l2-core/v4l2-ioctl.c
@@
-1388,7
+1388,7
@@
static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)
(char)((fmt->pixelformat >> 8) & 0x7f),
(char)((fmt->pixelformat >> 16) & 0x7f),
(char)((fmt->pixelformat >> 24) & 0x7f),
- (fmt->pixelformat & (1 << 31)) ? "-BE" : "");
+ (fmt->pixelformat & (1
UL
<< 31)) ? "-BE" : "");
break;
}
}