summaryrefslogtreecommitdiff
path: root/universal.c
diff options
context:
space:
mode:
Diffstat (limited to 'universal.c')
-rw-r--r--universal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/universal.c b/universal.c
index 5932767bdf..cce2a87d1c 100644
--- a/universal.c
+++ b/universal.c
@@ -997,7 +997,7 @@ XS(XS_re_regexp_pattern)
/* Houston, we have a regex! */
SV *pattern;
- if ( gimme == G_ARRAY ) {
+ if ( gimme == G_LIST ) {
STRLEN left = 0;
char reflags[sizeof(INT_PAT_MODS) + MAX_CHARSET_NAME_LENGTH];
const char *fptr;
@@ -1044,7 +1044,7 @@ XS(XS_re_regexp_pattern)
}
} else {
/* It ain't a regexp folks */
- if ( gimme == G_ARRAY ) {
+ if ( gimme == G_LIST ) {
/* return the empty list */
XSRETURN_EMPTY;
} else {