mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:25:39 +00:00
rpcrt4/tests: Cast to ULONGLONG instead of LONGLONG to avoid shift overflow.
This commit is contained in:
parent
c49e9d085d
commit
e6ca322fb1
|
@ -965,7 +965,7 @@ static void test_simple_struct(void)
|
|||
s1.c = 0xa5;
|
||||
s1.l1 = 0xdeadbeef;
|
||||
s1.l2 = 0xcafebabe;
|
||||
s1.ll = ((LONGLONG) 0xbadefeed << 32) | 0x2468ace0;
|
||||
s1.ll = ((ULONGLONG) 0xbadefeed << 32) | 0x2468ace0;
|
||||
|
||||
wiredatalen = 24;
|
||||
memcpy(wiredata, &s1, wiredatalen);
|
||||
|
|
Loading…
Reference in a new issue