|
From: <oh...@ma...> - 2009-05-07 22:19:06
|
Author: oharboe
Date: 2009-05-07 22:19:04 +0200 (Thu, 07 May 2009)
New Revision: 1650
Modified:
trunk/src/target/arm11.c
Log:
fix c99 compile errors
Modified: trunk/src/target/arm11.c
===================================================================
--- trunk/src/target/arm11.c 2009-05-07 14:22:15 UTC (rev 1649)
+++ trunk/src/target/arm11.c 2009-05-07 20:19:04 UTC (rev 1650)
@@ -1144,7 +1144,8 @@
{
arm11->reg_list[ARM11_RC_R1].dirty = 1;
- for (size_t i = 0; i < count; i++)
+ size_t i;
+ for (i = 0; i < count; i++)
{
/* ldrh r1, [r0], #2 */
arm11_run_instr_no_data1(arm11,
@@ -1224,7 +1225,8 @@
{
arm11->reg_list[ARM11_RC_R1].dirty = 1;
- for (size_t i = 0; i < count; i++)
+ size_t i;
+ for (i = 0; i < count; i++)
{
u16 value;
memcpy(&value, buffer + count * sizeof(u16), sizeof(u16));
|