diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-17 02:48:14 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-17 02:48:14 +0000 |
commit | 3c001241a85862cb26f00a7e6c570426d26c26d0 (patch) | |
tree | 25a405576b6e7b6825a5e213839ea8e79e9532c3 /pp_sys.c | |
parent | 8c99d73ee7ce90de2561496f683f3850d1269e1d (diff) | |
download | perl-3c001241a85862cb26f00a7e6c570426d26c26d0.tar.gz |
fix signedness in test for syswrite() length argument
p4raw-id: //depot/perl@5768
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1616,11 +1616,11 @@ PP(pp_send) bufsv = *++MARK; buffer = SvPV(bufsv, blen); #if Size_t_size > IVSIZE - length = SvNVx(*++MARK); + length = (Size_t)SvNVx(*++MARK); #else - length = SvIVx(*++MARK); + length = (Size_t)SvIVx(*++MARK); #endif - if ((Size_t)length < 0) + if ((SSize_t)length < 0) DIE(aTHX_ "Negative length"); SETERRNO(0,0); io = GvIO(gv); |