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)
commita2db24bcfc706bd818095351ab815b6bdc2e3e56
tree4a9329d28d72de2dce00fe1978636fbe4a5e1930
parentf0b1609e4a0f9dc1ae48d99e10b3c39466e03999
Fix "Dead nested assignment" static analyzer warning in monthFromDayInYear()
<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
Source/WTF/ChangeLog
Source/WTF/wtf/DateMath.h