diff options
author | Gleydson Soares <gsoares@gmail.com> | 2016-11-02 14:18:52 -0300 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2016-11-02 23:16:21 +0000 |
commit | 2d82ef9d98aeae7592e9e4036722468a1dc53acb (patch) | |
tree | 468f7db2a36193eb79d564d50a0f49b43370a031 /src | |
parent | 35d43924484b88b9816e40d2f6bff4547f3eec47 (diff) | |
download | plan9port-2d82ef9d98aeae7592e9e4036722468a1dc53acb.tar.gz plan9port-2d82ef9d98aeae7592e9e4036722468a1dc53acb.tar.bz2 plan9port-2d82ef9d98aeae7592e9e4036722468a1dc53acb.zip |
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 (limited to 'src')
-rw-r--r-- | src/libregexp/regcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libregexp/regcomp.c b/src/libregexp/regcomp.c index 09678755..d9deb135 100644 --- a/src/libregexp/regcomp.c +++ b/src/libregexp/regcomp.c @@ -238,7 +238,7 @@ optimize(Reprog *pp) int size; Reprog *npp; Reclass *cl; - int diff; + ptrdiff_t diff; /* * get rid of NOOP chains |