From: kmccullo Date: Wed, 4 Oct 2006 22:57:45 +0000 (+0000) Subject: build fix X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=4342a8dcb5b2efffa712b8d8275a5aac48a21f2d build fix * kjs/DateMath.cpp: (KJS::dateToDayInYear): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16793 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog index ab5df0806222..40dac3145d4d 100644 --- a/JavaScriptCore/ChangeLog +++ b/JavaScriptCore/ChangeLog @@ -1,3 +1,10 @@ +2006-10-05 Kevin McCullough + + build fix + + * kjs/DateMath.cpp: + (KJS::dateToDayInYear): + 2006-10-05 Mark Rowe Reviewed by maculloch. diff --git a/JavaScriptCore/kjs/DateMath.cpp b/JavaScriptCore/kjs/DateMath.cpp index 14d1598a4527..787e4bfdbbb1 100644 --- a/JavaScriptCore/kjs/DateMath.cpp +++ b/JavaScriptCore/kjs/DateMath.cpp @@ -277,7 +277,7 @@ static inline double timeToMseconds(double hour, double min, double sec, double static int dateToDayInYear(int year, int month, int day) { - year += static_cast(floor(month / 12)); + year += static_cast(floor(month / 12.0)); month = static_cast(fmod(month, 12.0)); if (month < 0)