Use const and not number literal when comparing nodetype.