mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 01:33:55 +00:00
regress: fix some warnings on printing sizeof()
This commit is contained in:
parent
89c9ea5f8f
commit
49d546b355
2 changed files with 2 additions and 2 deletions
|
@ -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 %lu)\n", uc_strerror(err), sizeof(X86_CODE32) - 1);
|
printf("Failed to write emulation code to memory, quit!: %s(len %zu)\n", uc_strerror(err), sizeof(X86_CODE32) - 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,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 %lu)", uc_strerror(err), sizeof(X86_CODE32) - 1);
|
printf("Failed to write emulation code to memory, quit!: %s(len %zu)", uc_strerror(err), sizeof(X86_CODE32) - 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue