[xslt] Mismatched types in libxslt/variables.c



res is of type int. xmlHashLookup2 returns type 'void *'. There are
not compatible.

-- 
albert chin (china@thewrittenword.com)

-- snip snip
--- libxslt/variables.c.orig	Sun Jun 22 02:59:45 2003
+++ libxslt/variables.c	Sun Jun 22 03:00:07 2003
@@ -901,8 +901,7 @@
     if (ncname == NULL)
 	return (-1);
 
-    res = xmlHashLookup2(ctxt->globalVars, ncname, href);
-    if (res != 0) {
+    if (xmlHashLookup2(ctxt->globalVars, ncname, href)) {
 	xsltTransformError(ctxt, style, NULL,
 	    "Global parameter %s already defined\n", ncname);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]