regress: fix compiled warning for 00opcode_uc_crash.c

This commit is contained in:
Nguyen Anh Quynh 2015-11-05 22:51:10 +08:00
parent 2fe1b31d51
commit de86647dbe

View file

@ -35,7 +35,7 @@ static void VM_exec()
err = uc_mem_write(uc, ADDRESS, X86_CODE32, sizeof(X86_CODE32) - 1); err = uc_mem_write(uc, ADDRESS, X86_CODE32, sizeof(X86_CODE32) - 1);
if(err != UC_ERR_OK) if(err != UC_ERR_OK)
{ {
printf("Failed to write emulation code to memory, quit!: %s(len %d)", uc_strerror(err), sizeof(X86_CODE32) - 1); printf("Failed to write emulation code to memory, quit!: %s(len %lu)", uc_strerror(err), sizeof(X86_CODE32) - 1);
return; return;
} }
@ -66,4 +66,4 @@ int main(int argc, char *argv[])
{ {
VM_exec(); VM_exec();
return 0; return 0;
} }