rpcrt4/tests: Cast to ULONGLONG instead of LONGLONG to avoid shift overflow.

This commit is contained in:
Gerald Pfeifer 2015-09-04 00:39:24 +02:00 committed by Alexandre Julliard
parent c49e9d085d
commit e6ca322fb1
1 changed files with 1 additions and 1 deletions

View File

@ -965,7 +965,7 @@ static void test_simple_struct(void)
s1.c = 0xa5; s1.c = 0xa5;
s1.l1 = 0xdeadbeef; s1.l1 = 0xdeadbeef;
s1.l2 = 0xcafebabe; s1.l2 = 0xcafebabe;
s1.ll = ((LONGLONG) 0xbadefeed << 32) | 0x2468ace0; s1.ll = ((ULONGLONG) 0xbadefeed << 32) | 0x2468ace0;
wiredatalen = 24; wiredatalen = 24;
memcpy(wiredata, &s1, wiredatalen); memcpy(wiredata, &s1, wiredatalen);