drivers/ao_lco: Fix box types to be uint16_t. Also clean other -Wconversion messages
authorKeith Packard <keithp@keithp.com>
Fri, 28 Jan 2022 17:33:17 +0000 (09:33 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 17 Feb 2022 01:26:49 +0000 (17:26 -0800)
commit9c27459fe1417b460f01f053bc44474623b1cbca
tree5b070344e871b849a53f5d2600bfbea577b5ffbd
parent71c3652d6c511db03402f5b7487bc4098e6d850f
drivers/ao_lco: Fix box types to be uint16_t. Also clean other -Wconversion messages

Old LCO code uses 0x1000 as magic value for "DRAG" box, so we need 16
bits. Switch all box variables to 16 bits, use int32_t when switching
box numbers to deal with negative values and still hold the whole
possible range (even though 16 bits "should" be plenty).

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_lco.c
src/drivers/ao_lco.h
src/drivers/ao_lco_bits.c
src/drivers/ao_lco_cmd.c
src/drivers/ao_lco_func.c
src/drivers/ao_lco_two.c