home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / DIFF / ALPHA / DIFF. next >
Encoding:
Text File  |  1998-07-24  |  823 b   |  21 lines

  1. --- regex.c.rtr    Sat Oct  1 05:07:02 1994
  2. +++ regex.c    Tue Feb 14 07:05:52 1995
  3. @@ -1954,7 +1954,7 @@
  4.  
  5.              /* Discard any (non)matching list bytes that are all 0 at the
  6.                 end of the map.  Decrease the map-length byte too.  */
  7. -            while ((int) b[-1] > 0 && b[b[-1] - 1] == 0) 
  8. +            while ((long) b[-1] > 0 && b[b[-1] - 1] == 0) 
  9.                b[-1]--; 
  10.              b += b[-1];
  11.            }
  12. @@ -3994,7 +3994,7 @@
  13.                            regstart[r] = old_regstart[r];
  14.  
  15.                            /* xx why this test?  */
  16. -                          if ((int) old_regend[r] >= (int) regstart[r])
  17. +                          if ((long) old_regend[r] >= (long) regstart[r])
  18.                              regend[r] = old_regend[r];
  19.                          }     
  20.                      }
  21.