]> gitweb.factorcode.org Git - factor.git/commitdiff
pcre: add a comment for future knowledges.
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 10 Jul 2014 23:33:20 +0000 (16:33 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 10 Jul 2014 23:33:20 +0000 (16:33 -0700)
extra/pcre/pcre.factor

index 963c1613af4bac9b188b0303c6d7c1836a27e644..4f388e0e18294c674ecb1ad9b02d4434f3476249 100644 (file)
@@ -60,6 +60,8 @@ ERROR: pcre-error value ;
 
 : name-table ( pcre extra -- addr )
     [ drop alien-address 32 on-bits unmask ]
+    ! On at least win64, the pointer is returned as an int and is
+    ! negative. Cast it to a uint and everything works.
     [ PCRE_INFO_NAMETABLE pcre-fullinfo int <ref> uint deref ] 2bi + ;
 
 : name-entry-size ( pcre extra -- size )