Fixed #5695 (FP: Mismatching assignment and comparison)