--- np2/i386c/ia32/instructions/shift_rotate.mcr 2012/01/08 19:09:40 1.17 +++ np2/i386c/ia32/instructions/shift_rotate.mcr 2012/01/23 03:52:54 1.18 @@ -142,7 +142,7 @@ void CPUCALL \ inst##_EbCL_ext(UINT32 madr, UINT32 cl) \ { \ \ - cpu_vmemory_RMW_b(CPU_INST_SEGREG_INDEX, madr, inst##CL1, (void *)cl); \ + cpu_vmemory_RMW_b(CPU_INST_SEGREG_INDEX, madr, inst##CL1, UINT32_TO_PTR(cl)); \ } \ \ void CPUCALL \ @@ -159,7 +159,7 @@ void CPUCALL \ inst##_EwCL_ext(UINT32 madr, UINT32 cl) \ { \ \ - cpu_vmemory_RMW_w(CPU_INST_SEGREG_INDEX, madr, inst##CL2, (void *)cl); \ + cpu_vmemory_RMW_w(CPU_INST_SEGREG_INDEX, madr, inst##CL2, UINT32_TO_PTR(cl)); \ } \ \ void CPUCALL \ @@ -176,7 +176,7 @@ void CPUCALL \ inst##_EdCL_ext(UINT32 madr, UINT32 cl) \ { \ \ - cpu_vmemory_RMW_d(CPU_INST_SEGREG_INDEX, madr, inst##CL4, (void *)cl); \ + cpu_vmemory_RMW_d(CPU_INST_SEGREG_INDEX, madr, inst##CL4, UINT32_TO_PTR(cl)); \ } /*