fix clang type warnings