From: Keith Packard Date: Thu, 17 Feb 2022 01:53:11 +0000 (-0800) Subject: ao_flash_task: Add casts to reduce -Wconversion warnings X-Git-Tag: 1.9.10.4~13 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=63fc45973ec92bf3ef7122da0f76d6e111ecd342;hp=7c5b9b2c6bf57aea4332177e7fb0eb2d490f4f6e ao_flash_task: Add casts to reduce -Wconversion warnings No bugs identified Signed-off-by: Keith Packard --- diff --git a/src/product/ao_flash_task.c b/src/product/ao_flash_task.c index bbd5675a..8ae9b2e5 100644 --- a/src/product/ao_flash_task.c +++ b/src/product/ao_flash_task.c @@ -49,7 +49,7 @@ ao_application(void) static uint32_t ao_get_hex32(void) { - int8_t n; + int n; uint32_t v = 0; for (;;) { @@ -66,7 +66,7 @@ ao_get_hex32(void) n = n - ('A' - 10); else break; - v = (v << 4) | n; + v = (v << 4) | (uint8_t) n; n = ao_usb_getchar(); } return v;