fsphil/hacktv

clang warnings

dforsi opened this issue · 1 comments

Compiling with Debian clang version 13.0.1-+rc3-1~exp1+b1 shows the following warnings:

$ make CC=clang

video.c:1620:23: warning: implicit conversion from 'double' to 'int' changes value from 7.499999999999999E-5 to 0 [-Wliteral-conversion]
        .fm_mono_preemph   = 0.000075, /* Seconds */
                             ^~~~~~~~

mac.c:994:27: warning: implicit conversion from 'unsigned long' to 'uint8_t' (aka 'unsigned char') changes value from 18446744073709551604 to 244 [-Wconstant-conversion]
        return(hsync ? MAC_LSW : ~MAC_LSW);
        ~~~~~~                   ^~~~~~~~

Thanks for the report. These should be fixed now.