summaryrefslogtreecommitdiff
path: root/xpointer.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-06-28 12:54:16 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-06-28 12:54:16 +0000
commit87ee914013402992fc6cdafc0bd4c9904e5a99e0 (patch)
tree9ebdadfb1e84411f71c9227c4014d0a5bd3d0120 /xpointer.c
parent0e4cd17b617ea3887da8e3f1985890e0666d2c18 (diff)
downloadlibxml2-87ee914013402992fc6cdafc0bd4c9904e5a99e0.tar.gz
- xpointer.c include/win32config.h win32/libxml2/libxml2.def.src
libxml.h : Yon Derek provided a set of changes to compile from CVS on Windows/MSC Daniel
Diffstat (limited to 'xpointer.c')
-rw-r--r--xpointer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpointer.c b/xpointer.c
index caf39bbe..c4d97203 100644
--- a/xpointer.c
+++ b/xpointer.c
@@ -2726,13 +2726,13 @@ xmlXPtrStringRangeFunction(xmlXPathParserContextPtr ctxt, int nargs) {
CHECK_TYPE(XPATH_NUMBER);
number = valuePop(ctxt);
if (number != NULL)
- num = number->floatval;
+ num = (int) number->floatval;
}
if (nargs >= 3) {
CHECK_TYPE(XPATH_NUMBER);
position = valuePop(ctxt);
if (position != NULL)
- pos = position->floatval;
+ pos = (int) position->floatval;
}
CHECK_TYPE(XPATH_STRING);
string = valuePop(ctxt);