Remove warning in printf due to type mismatch
commitdfa5294fce3e035192b283fe0b6fd08be48d78da
authorAlexandre Raymond <cerbere@gmail.com>
Sun, 29 May 2011 22:22:50 +0000 (29 18:22 -0400)
committerAndreas Färber <andreas.faerber@web.de>
Tue, 14 Jun 2011 01:08:57 +0000 (14 03:08 +0200)
tree7c574b48328b84d6c588a2561f00e04f0fb34d06
parent9851484f3d4afea83b46cc0974758ab756edfacd
Remove warning in printf due to type mismatch

----8<----
qemu/target-lm32/translate.c: In function ‘gen_intermediate_code_internal’:
qemu/target-lm32/translate.c:1135: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 4 has type ‘int’
----8<----

Both gen_opc_ptr and gen_opc_buf are "uint16_t *". The difference between
pointers is a ptrdiff_t so printf needs '%td'.

Signed-off-by: Alexandre Raymond <cerbere@gmail.com>
Acked-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
target-lm32/translate.c