Fixed #4735 (FP: Mismatching assignment and comparison)