f1aa589cfa
write Perl bindings should double-check this. XXX: This will almost certainly not work on LP64 platforms as it casts XXX: Perl-provided pointers to int and back. However, fixing this XXX: requires changing the API of the parent Sablotron package, which XXX: doesn't seem like a great idea at the moment.
13 lines
477 B
Text
13 lines
477 B
Text
$NetBSD: patch-DOM_DOM_xsh,v 1.1 2011/10/15 17:53:51 dholland Exp $
|
|
|
|
--- DOM/DOM.xsh~ 2003-02-24 14:01:12.000000000 +0000
|
|
+++ DOM/DOM.xsh
|
|
@@ -635,7 +635,7 @@ xql_ns(object, expr, nsmap, ...)
|
|
i = 0;
|
|
hv_iterinit(maph);
|
|
while (he = hv_iternext(maph)) {
|
|
- int l;
|
|
+ ssize_t l;
|
|
if (++nsnum > 10 * mapsize) {
|
|
mapsize++;
|
|
nsarr = realloc(nsarr, (10*2*mapsize + 1) * sizeof(char*));
|