{
switch (size) {
case 1:
- return __cmpxchg_case_1(ptr, old, new);
+ return __cmpxchg_case_1(ptr, (u8)old, new);
case 2:
- return __cmpxchg_case_2(ptr, old, new);
+ return __cmpxchg_case_2(ptr, (u16)old, new);
case 4:
return __cmpxchg_case_4(ptr, old, new);
case 8:
{
switch (size) {
case 1:
- return __cmpxchg_case_mb_1(ptr, old, new);
+ return __cmpxchg_case_mb_1(ptr, (u8)old, new);
case 2:
- return __cmpxchg_case_mb_2(ptr, old, new);
+ return __cmpxchg_case_mb_2(ptr, (u16)old, new);
case 4:
return __cmpxchg_case_mb_4(ptr, old, new);
case 8: