aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-10-04 16:02:30 -0700
committerTim Newsome <tim@sifive.com>2017-10-04 16:02:30 -0700
commit24658db50ea86d08d8b8bbbd306cb12490074335 (patch)
tree8ee43e3eaf72437b8c274f3af3cb2bfac255ca74
parentabe7eba25a7e8ae0c9daae6785ef2d204b626825 (diff)
downloadriscv-openocd-24658db50ea86d08d8b8bbbd306cb12490074335.zip
riscv-openocd-24658db50ea86d08d8b8bbbd306cb12490074335.tar.gz
riscv-openocd-24658db50ea86d08d8b8bbbd306cb12490074335.tar.bz2
Fix compile warnings.
Partly fixes #124. Change-Id: I3a7fd65c643e40b142709806cb9fb4cc62bb955f
-rw-r--r--src/target/riscv/riscv-011.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/riscv/riscv-011.c b/src/target/riscv/riscv-011.c
index 7ac8561..6e576fe 100644
--- a/src/target/riscv/riscv-011.c
+++ b/src/target/riscv/riscv-011.c
@@ -2080,7 +2080,7 @@ static int read_memory(struct target *target, target_addr_t address,
cache_write(target, CACHE_NO_READ, false);
riscv011_info_t *info = get_info(target);
- const int max_batch_size = 256;
+ const unsigned max_batch_size = 256;
scans_t *scans = scans_new(target, max_batch_size);
uint32_t result_value = 0x777;
@@ -2241,7 +2241,7 @@ static int write_memory(struct target *target, target_addr_t address,
return ERROR_FAIL;
}
- const int max_batch_size = 256;
+ const unsigned max_batch_size = 256;
scans_t *scans = scans_new(target, max_batch_size);
uint32_t result_value = 0x777;