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>
This commit is contained in:
Gleydson Soares 2016-11-02 14:18:52 -03:00 committed by Russ Cox
parent 35d4392448
commit 2d82ef9d98

View file

@ -238,7 +238,7 @@ optimize(Reprog *pp)
int size;
Reprog *npp;
Reclass *cl;
int diff;
ptrdiff_t diff;
/*
* get rid of NOOP chains