summaryrefslogtreecommitdiffstats
path: root/regexec.c
diff options
context:
space:
mode:
authorkosako <kosako@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-05-21 00:56:05 +0000
committerkosako <kosako@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-05-21 00:56:05 +0000
commit24faafb25308b140b40eb876b8f5078544565cb6 (patch)
treee32e24be443999425587fa9f85fc33b3f8454834 /regexec.c
parent3c9db8d6ac19de67cb2d34f3392e4844a1dd1c3b (diff)
downloadruby-24faafb25308b140b40eb876b8f5078544565cb6.tar.gz
ruby-24faafb25308b140b40eb876b8f5078544565cb6.tar.xz
ruby-24faafb25308b140b40eb876b8f5078544565cb6.zip
fix bug [ruby-list:42234]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index de14d6d81..90514d403 100644
--- a/regexec.c
+++ b/regexec.c
@@ -360,7 +360,8 @@ typedef struct _StackType {
/* stack type check mask */
#define STK_MASK_POP_USED 0x00ff
#define IS_TO_VOID_TARGET(stk) \
- (((stk)->type & STK_MASK_POP_USED) || (stk)->type == STK_NULL_CHECK_START)
+ (((stk)->type & STK_MASK_POP_USED) || \
+ (stk)->type == STK_NULL_CHECK_START || (stk)->type == STK_NULL_CHECK_END)
typedef struct {
void* stack_p;