]> gitweb.factorcode.org Git - factor.git/commitdiff
pcre: On at least win64, the pointer is returned as an int and is
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 10 Jul 2014 23:22:45 +0000 (16:22 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 10 Jul 2014 23:23:34 +0000 (16:23 -0700)
negative. Cast it to a uint and everything works. Fixes #1105.

extra/pcre/pcre.factor

index bfd16ce835281ebf9c3c7a3322f8b17239bb13b0..963c1613af4bac9b188b0303c6d7c1836a27e644 100644 (file)
@@ -60,7 +60,7 @@ ERROR: pcre-error value ;
 
 : name-table ( pcre extra -- addr )
     [ drop alien-address 32 on-bits unmask ]
-    [ PCRE_INFO_NAMETABLE pcre-fullinfo ] 2bi + ;
+    [ PCRE_INFO_NAMETABLE pcre-fullinfo int <ref> uint deref ] 2bi + ;
 
 : name-entry-size ( pcre extra -- size )
     PCRE_INFO_NAMEENTRYSIZE pcre-fullinfo ;