pkgsrc/textproc/p5-XML-Sablotron/patches/patch-DOM_DOM_xsh
dholland f1aa589cfa Fix build with perl 5.14... I think. Someone who actually knows how to
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.
2011-10-15 17:53:51 +00:00

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*));