From: Ilya Zakharevich Date: Tue, 9 Jun 1998 23:02:52 +0000 (-0400) Subject: Re: [PATCH 5.004_66] REG_INFTY patch corrected X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=83cfe48c09335ee3e3bb5bf1d853188ba46fbd0a;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH 5.004_66] REG_INFTY patch corrected Message-Id: <199806100302.XAA04958@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@1109 --- diff --git a/regcomp.h b/regcomp.h index f9e8c2e..bc7977d 100644 --- a/regcomp.h +++ b/regcomp.h @@ -271,10 +271,9 @@ struct regnode_2 { #endif -/* I16_MAX is no good for REG_INFTY because sizeof(short) > 2 - * is perfectly fine. In Cray C90 sizeof(short) == 4, - * in Cray T90 sizeof(short) == 8. */ -#define REG_INFTY ((1<<15)-1) +#ifndef +# define REG_INFTY I16_MAX +#endif #ifdef REGALIGN # define ARG_VALUE(arg) (arg)