diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-08-02 05:41:41 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-08-02 05:41:41 +0000 |
commit | 048cfca119e459213e1be7687c50fa35815885ae (patch) | |
tree | 3cc3428f45d6f89108f999f73fb9a42b14bb9039 | |
parent | 9d116dd7c895b17badf4ad422ae44da0c4df7bc2 (diff) | |
download | perl-048cfca119e459213e1be7687c50fa35815885ae.tar.gz |
use I32_MAX as the limit when U16_MAX > I32_MAX (for CRAY)
p4raw-id: //depot/maint-5.005/perl@1698
-rw-r--r-- | regcomp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -306,7 +306,10 @@ study_chunk(regnode **scanp, I32 *deltap, regnode *last, scan_data_t *data, U32 } if (OP(scan) != CURLYX) { - int max = (reg_off_by_arg[OP(scan)] ? I32_MAX : U16_MAX); + int max = (reg_off_by_arg[OP(scan)] + ? I32_MAX + /* I32 may be smaller than U16 on CRAYs! */ + : (I32_MAX < U16_MAX ? I32_MAX : U16_MAX)); int off = (reg_off_by_arg[OP(scan)] ? ARG(scan) : NEXT_OFF(scan)); int noff; regnode *n = scan; |