Fix warning on VisualStudio for uint8_t to bool conversion.