summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-07-02 21:19:09 +0000
committerNicholas Clark <nick@ccl4.org>2005-07-02 21:19:09 +0000
commitffa5faba68902313c2103a742dc00a206824c798 (patch)
tree2e65289b527b39b227a1c3a9c95281ea3913ce76 /handy.h
parent4a32f131d097e4eeab6d11f1f34fb5051d0103c7 (diff)
downloadperl-ffa5faba68902313c2103a742dc00a206824c798.tar.gz
Andy suggests this tweak to Dave's fix for MEM_WRAP_CHECK to shut up
a different compiler warnings. I guess we need a waterbed theory of compiler warnings. p4raw-id: //depot/perl@25055
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index 911aca801d..228490f5b7 100644
--- a/handy.h
+++ b/handy.h
@@ -598,7 +598,7 @@ hopefully catches attempts to access uninitialized memory.
#ifdef PERL_MALLOC_WRAP
#define MEM_WRAP_CHECK(n,t) \
- (void)((sizeof(t)>1?n:0)>((MEM_SIZE)~0)/sizeof(t)?(Perl_croak_nocontext(PL_memory_wrap),0):0)
+ (void)((sizeof(t)>1?n:1)>((MEM_SIZE)~0)/sizeof(t)?(Perl_croak_nocontext(PL_memory_wrap),0):0)
#define MEM_WRAP_CHECK_1(n,t,a) \
(void)((n)>((MEM_SIZE)~0)/sizeof(t)?(Perl_croak_nocontext(a),0):0)
#define MEM_WRAP_CHECK_2(n,t,a,b) \