tfix segfaults on OpenBSD: int cannot hold all the values a ptrdiff_t can take. - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 2d82ef9d98aeae7592e9e4036722468a1dc53acb
 (DIR) parent 35d43924484b88b9816e40d2f6bff4547f3eec47
 (HTM) Author: Gleydson Soares <gsoares@gmail.com>
       Date:   Wed,  2 Nov 2016 14:18:52 -0300
       
       fix segfaults on OpenBSD: int cannot hold all the values a ptrdiff_t can take.
       
       Change-Id: I90806e6f2e46a94f38aa0a8a7038aa6599b448b3
       Reviewed-on: https://plan9port-review.googlesource.com/2660
       Reviewed-by: Russ Cox <rsc@swtch.com>
       
       Diffstat:
         M src/libregexp/regcomp.c             |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/libregexp/regcomp.c b/src/libregexp/regcomp.c
       t@@ -238,7 +238,7 @@ optimize(Reprog *pp)
                int size;
                Reprog *npp;
                Reclass *cl;
       -        int diff;
       +        ptrdiff_t diff;
        
                /*
                 *  get rid of NOOP chains