On Wed, Apr 03, 2013 at 08:09:15PM +0300, Heikki Linnakangas wrote:
> --- a/src/include/regex/regguts.h
> +++ b/src/include/regex/regguts.h
> @@ -148,6 +148,7 @@
> typedef short color; /* colors of characters */
> typedef int pcolor; /* what color promotes to */
>
> +#define MAX_COLOR 32767 /* max value that fits in 'color' datatype */
This should use SHRT_MAX, no? (Not that any supported platform differs here.)
--
Noah Misch
EnterpriseDB http://www.enterprisedb.com