aboutsummaryrefslogtreecommitdiff
path: root/hw/sd/sd.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-07-07 06:12:58 +0200
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-10-26 00:36:52 +0100
commit692fb0ef31af680632c84bc18bc639cba4a0e24b (patch)
treee23273507f41e3c41b36b779356d0d6c436ad31d /hw/sd/sd.c
parentaecaa05922bca8b1760cd463935ca2a71df776f5 (diff)
hw/sd/sdcard: Make iolen unsigned
I/O request length can not be negative. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20200630133912.9428-15-f4bug@amsat.org>
Diffstat (limited to 'hw/sd/sd.c')
-rw-r--r--hw/sd/sd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sd/sd.c b/hw/sd/sd.c
index aa6059d2ad..fcbc1fd9d6 100644
--- a/hw/sd/sd.c
+++ b/hw/sd/sd.c
@@ -1982,7 +1982,7 @@ uint8_t sd_read_byte(SDState *sd)
{
/* TODO: Append CRCs */
uint8_t ret;
- int io_len;
+ uint32_t io_len;
if (!sd->blk || !blk_is_inserted(sd->blk) || !sd->enable)
return 0x00;