diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-22 05:37:52 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-22 05:37:52 +0000 |
| commit | 8c58d3daf6d441697bd413cd0b6242173c1a69fb (patch) | |
| tree | 3921cca9b190e55fe05ca6e7162911b3bc4683f9 | |
| parent | 4da0a12157e7db11bf5c1e6378a87f37a40431bf (diff) | |
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | regex.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -2,6 +2,12 @@ Fri Sep 22 13:58:51 2000 WATANABE Hirofumi <eban@os.rim.or.jp> * ext/extmk.rb.in: don't use default $: +Fri Sep 22 13:42:50 2000 Katsuyuki Komatsu <komatsu@sarion.co.jp> + + * regex.c (PUSH_FAILURE_COUNT): avoid casting warning on alpha. + + * regex.c (PUSH_FAILURE_POINT): ditto. + Fri Sep 22 10:16:21 2000 WATANABE Hirofumi <eban@os.rim.or.jp> * win32/config.h.in: add HAVE_TELLDIR, HAVE_SEEKDIR @@ -3366,7 +3366,7 @@ re_search(bufp, string, size, startpos, range, regs) int c; \ EXTRACT_NUMBER(c, ptr); \ ENSURE_FAIL_STACK(NUM_COUNT_ITEMS); \ - *stackp++ = (unsigned char*)c; \ + *stackp++ = (unsigned char*)(long)c; \ *stackp++ = (ptr); \ num_failure_counts++; \ } while (0) @@ -3385,7 +3385,7 @@ re_search(bufp, string, size, startpos, range, regs) break; \ \ ENSURE_FAIL_STACK(NUM_FAILURE_ITEMS); \ - *stackp++ = (unsigned char*)num_failure_counts; \ + *stackp++ = (unsigned char*)(long)num_failure_counts; \ num_failure_counts = 0; \ \ /* Now push the info for each of those registers. */ \ |
