[libbluray-devel] Fix shift
hpi1
git at videolan.org
Fri Feb 26 22:04:20 CET 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Feb 21 19:07:05 2016 +0200| [43202807657c99fac1c8fda5d5e7a4c2e7cdfc30] | committer: hpi1
Fix shift
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=43202807657c99fac1c8fda5d5e7a4c2e7cdfc30
---
src/libbluray/hdmv/mobj_print.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libbluray/hdmv/mobj_print.c b/src/libbluray/hdmv/mobj_print.c
index 4361a76..375ead5 100644
--- a/src/libbluray/hdmv/mobj_print.c
+++ b/src/libbluray/hdmv/mobj_print.c
@@ -321,7 +321,7 @@ static uint32_t _cmd_to_u32(HDMV_INSN *insn)
uint8_t u8[4];
} tmp;
tmp.insn = *insn;
- return (tmp.u8[0] << 24) | (tmp.u8[1] << 16) | (tmp.u8[2] << 8) | tmp.u8[3];
+ return ((unsigned)tmp.u8[0] << 24) | (tmp.u8[1] << 16) | (tmp.u8[2] << 8) | tmp.u8[3];
}
int mobj_sprint_cmd(char *buf, MOBJ_CMD *cmd)
More information about the libbluray-devel
mailing list