fix clang compile warning:
comparison of constant ... with expression of type ... is always true