Fix Visual Studio W4 warnings

To check:
BGEO.cpp line 313 -> 0xFF is truncated as it is casts to char, should the cast be to an unsigned char?
PDA.cpp line 90 -> should the comparison be with word?