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
+2008-01-18 Prasanth Ullattil <prasanth.ullattil@trolltech.com>
+
+ Reviewed by Simon Hausmann <hausmann@webkit.org>.
+
+ 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 <holger.freyther@trolltech.com>
Reviewed by Simon.
if (!a.isNodeSet())
return 0.0;
- return a.toNodeSet().size();
+ return double(a.toNodeSet().size());
}
Value FunString::evaluate() const