]> git.gag.com Git - fw/altos/commitdiff
mpusb-3.0: Add cast to putchar call. Make compiler happy.
authorKeith Packard <keithp@keithp.com>
Thu, 22 Aug 2024 17:41:44 +0000 (10:41 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 22 Aug 2024 17:41:44 +0000 (10:41 -0700)
We've added warnings about casts to catch mistakes; this one wasn't a
mistake.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/mpusb-v3.0/ao_mpusb.c

index dc30e19702fa1f8b467c540e4409d1e9c94630fd..610fa63120a5a37082eff8a2e8b596c3adaf6e97 100644 (file)
@@ -33,7 +33,7 @@ ao_report(void)
                        flush();
                        c = ao_up_getchar();
                }
-               putchar(c);
+               putchar((char) c);
        }
 }