Fix "Dead nested assignment" static analyzer warning in monthFromDayInYear()
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Mar 2020 16:58:27 +0000 (16:58 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Mar 2020 16:58:27 +0000 (16:58 +0000)
<https://webkit.org/b/209718>

Reviewed by Alex Christensen.

* wtf/DateMath.h:
(WTF::monthFromDayInYear): Change the last check so it doesn't
assign a value to `step`, thus avoiding the warning.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@259202 268f45cc-cd09-0410-ab3c-d52691b4dbfc


No differences found