Fixed #5058 (False positive: (warning) Comparison of a boolean expression with an integer.)