Fix signed/unsigned comparison.
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 30 Apr 2009 09:14:01 +0000 (09:14 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 30 Apr 2009 09:14:01 +0000 (09:14 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1577 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/flash.c

index 978fc0e79bc0b91cffbf5c48cece6b8d457db17b..2857ff6de326317bca5f51fb196c723bf6bdac46 100644 (file)
@@ -805,7 +805,7 @@ static int handle_flash_fill_command(struct command_context_s *cmd_ctx, char *cm
                if (err!=ERROR_OK)
                        return err;
 
-               int i;
+               unsigned i;
                for (i=0; i<cur_size; i++)
                {
                        if (readback[i]!=chunk[i])