summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2008-02-08 21:55:48 +0000
committerSteve Peters <steve@fisharerojo.org>2008-02-08 21:55:48 +0000
commitf8a4dbc572aee3db3959c5d7f46910e19960b963 (patch)
treea4310c978ec7b7da01de9445d15ceddf9605687c /perlio.c
parent7e8c2d18d3c652cc69ad75e73b2b8f2ab220bfbd (diff)
downloadperl-f8a4dbc572aee3db3959c5d7f46910e19960b963.tar.gz
Remove an unneeded if statement.
p4raw-id: //depot/perl@33261
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/perlio.c b/perlio.c
index d9c1e97c22..6cec4408cc 100644
--- a/perlio.c
+++ b/perlio.c
@@ -3400,9 +3400,7 @@ PerlIOStdio_set_ptrcnt(pTHX_ PerlIO *f, STDCHAR * ptr, SSize_t cnt)
#ifdef STDIO_PTR_LVALUE
PerlSIO_set_ptr(stdio, ptr); /* LHS STDCHAR* cast non-portable */
#ifdef STDIO_PTR_LVAL_SETS_CNT
- if (PerlSIO_get_cnt(stdio) != (cnt)) {
- assert(PerlSIO_get_cnt(stdio) == (cnt));
- }
+ assert(PerlSIO_get_cnt(stdio) == (cnt));
#endif
#if (!defined(STDIO_PTR_LVAL_NOCHANGE_CNT))
/*