git://git.webkit.org
/
WebKit-https.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
build fix
[WebKit-https.git]
/
JavaScriptCore
/
kjs
/
DateMath.cpp
diff --git
a/JavaScriptCore/kjs/DateMath.cpp
b/JavaScriptCore/kjs/DateMath.cpp
index 14d1598a4527e52ce8fe701d86ded928c74844c2..787e4bfdbbb1f17b0fc54701a23f640ebf2e2fe4 100644
(file)
--- 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<int>(floor(month / 12));
+ year += static_cast<int>(floor(month / 12
.0
));
month = static_cast<int>(fmod(month, 12.0));
if (month < 0)