summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-02-09 23:23:59 +0000
committerNicholas Clark <nick@ccl4.org>2006-02-09 23:23:59 +0000
commitce6f1cbce90e089336a9b1ef9c0f6a86b261d30d (patch)
tree407aa0bb9ace7f90a339e3f13c972071f468232e /op.c
parentb26759679e3267af95c36c8d4b2d8bd62de51599 (diff)
downloadperl-ce6f1cbce90e089336a9b1ef9c0f6a86b261d30d.tar.gz
Change 27136 seems to have inadvertently upset some compilers,
presumably where NULL was defined as 0, not (void *)0 p4raw-id: //depot/perl@27145
Diffstat (limited to 'op.c')
-rw-r--r--op.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/op.c b/op.c
index 9580c64865..9668905903 100644
--- a/op.c
+++ b/op.c
@@ -146,14 +146,14 @@ Perl_Slab_Free(pTHX_ void *op)
}
#endif
/*
- * In the following definition, the ", NULL" is just to make the compiler
+ * In the following definition, the ", (OP*)0" is just to make the compiler
* think the expression is of the right type: croak actually does a Siglongjmp.
*/
#define CHECKOP(type,o) \
- ((PL_op_mask && PL_op_mask[type]) \
+ ((PL_op_mask && PL_op_mask[type]) \
? ( op_free((OP*)o), \
Perl_croak(aTHX_ "'%s' trapped by operation mask", PL_op_desc[type]), \
- NULL ) \
+ (OP*)0 ) \
: CALL_FPTR(PL_check[type])(aTHX_ (OP*)o))
#define RETURN_UNLIMITED_NUMBER (PERL_INT_MAX / 2)