summaryrefslogtreecommitdiff
path: root/regex.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-22 05:37:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-22 05:37:52 +0000
commit5bb84ef24675ee3083ad2a0917b19420112beeaa (patch)
tree3921cca9b190e55fe05ca6e7162911b3bc4683f9 /regex.c
parent89363f9776ef02f69d780b8449aabe75b800c954 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regex.c b/regex.c
index 307b6af1aa..47da2ffdf3 100644
--- a/regex.c
+++ b/regex.c
@@ -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. */ \