fix confusing assign-and-test line; props DrLightman