comply with gfortran warnings regarding implicit integer/logical conversion