fix hashType warning on Linux