build fix
authorkmccullo <kmccullo@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Oct 2006 22:57:45 +0000 (22:57 +0000)
committerkmccullo <kmccullo@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Oct 2006 22:57:45 +0000 (22:57 +0000)
        * kjs/DateMath.cpp:
        (KJS::dateToDayInYear):

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

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/DateMath.cpp

index ab5df08062221d66ad6d17a9c040b5fe2fba8eff..40dac3145d4d8d36a20b8477baa92d55210089a8 100644 (file)
@@ -1,3 +1,10 @@
+2006-10-05  Kevin McCullough  <KMcCullough@apple.com>
+
+       build fix
+
+        * kjs/DateMath.cpp:
+        (KJS::dateToDayInYear):
+
 2006-10-05  Mark Rowe  <bdash@webkit.org>
 
         Reviewed by maculloch.
 2006-10-05  Mark Rowe  <bdash@webkit.org>
 
         Reviewed by maculloch.
index 14d1598a4527e52ce8fe701d86ded928c74844c2..787e4bfdbbb1f17b0fc54701a23f640ebf2e2fe4 100644 (file)
@@ -277,7 +277,7 @@ static inline double timeToMseconds(double hour, double min, double sec, double
 
 static int dateToDayInYear(int year, int month, int day)
 {
 
 static int dateToDayInYear(int year, int month, int day)
 {
-    year += static_cast<int>(floor(month / 12));
+    year += static_cast<int>(floor(month / 12.0));
 
     month = static_cast<int>(fmod(month, 12.0));
     if (month < 0)
 
     month = static_cast<int>(fmod(month, 12.0));
     if (month < 0)