diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-02-09 23:23:59 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-02-09 23:23:59 +0000 |
commit | ce6f1cbce90e089336a9b1ef9c0f6a86b261d30d (patch) | |
tree | 407aa0bb9ace7f90a339e3f13c972071f468232e /op.c | |
parent | b26759679e3267af95c36c8d4b2d8bd62de51599 (diff) | |
download | perl-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |