ao_monitor: Clean up -Wconversion warnings
authorKeith Packard <keithp@keithp.com>
Fri, 28 Jan 2022 23:35:18 +0000 (15:35 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 17 Feb 2022 01:26:49 +0000 (17:26 -0800)
No bugs detected

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_monitor.c

index cd5116990b7046e83789dfbbe2431e620be74170..3310a847a6b1ce0995aabd212160c66ec4c3c5dd 100644 (file)
@@ -296,7 +296,7 @@ ao_monitor_enable(void)
 static void
 set_monitor(void)
 {
-       ao_external_monitoring = ao_cmd_hex();
+       ao_external_monitoring = (uint8_t) ao_cmd_hex();
        ao_wakeup(&ao_external_monitoring);
        ao_wakeup(&ao_monitor_head);
        _ao_monitor_adjust();