$OpenBSD: patch-libxslt_extensions_c,v 1.1 2006/05/22 11:33:49 steven Exp $
--- libxslt/extensions.c.orig	Sun May 14 22:41:53 2006
+++ libxslt/extensions.c	Sun May 14 22:42:25 2006
@@ -324,7 +324,8 @@ xsltExtModuleRegisterDynamic(const xmlCh
     const xmlChar *ext_directory = NULL;
     const xmlChar *protocol = NULL;
     xmlChar *i, *regfunc_name;
-    int rc, seen_before;
+    int rc;
+    long seen_before;
 
     /* check for bad inputs */
     if (URI == NULL)
@@ -337,7 +338,7 @@ xsltExtModuleRegisterDynamic(const xmlCh
     }
 
     /* have we attempted to register this module already? */
-    seen_before = (int) xmlHashLookup(xsltModuleHash, URI);
+    seen_before = (long) xmlHashLookup(xsltModuleHash, URI);
     if (0 != seen_before) {
         return (-1);
     }
