From: hausmann@webkit.org Date: Fri, 18 Jan 2008 09:46:07 +0000 (+0000) Subject: Prasanth Ullattil X-Git-Url: http://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=55d49fdffc584567aae4ec9e51bf33f583560564 Prasanth Ullattil Fix compilation in Win64(3): Due to the size of size_t cast the return value explicitly to double() to make sure the right Value() constructor is called. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29612 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog index 23f36e8..e6314a7 100644 --- a/WebCore/ChangeLog +++ b/WebCore/ChangeLog @@ -1,3 +1,12 @@ +2008-01-18 Prasanth Ullattil + + Reviewed by Simon Hausmann . + + Fix compilation in Win64(3): Due to the size of size_t cast the return value explicitly to double() to make sure the right Value() constructor is called. + + * xml/XPathFunctions.cpp: + (WebCore::XPath::FunCount::evaluate): + 2008-01-18 Holger Hans Peter Freyther Reviewed by Simon. diff --git a/WebCore/xml/XPathFunctions.cpp b/WebCore/xml/XPathFunctions.cpp index 25e46be..9e12d28 100644 --- a/WebCore/xml/XPathFunctions.cpp +++ b/WebCore/xml/XPathFunctions.cpp @@ -375,7 +375,7 @@ Value FunCount::evaluate() const if (!a.isNodeSet()) return 0.0; - return a.toNodeSet().size(); + return double(a.toNodeSet().size()); } Value FunString::evaluate() const