projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c99d73
)
fix signedness in test for syswrite() length argument
author
Gurusamy Sarathy
<gsar@cpan.org>
Fri, 17 Mar 2000 02:48:14 +0000
(
02:48
+0000)
committer
Gurusamy Sarathy
<gsar@cpan.org>
Fri, 17 Mar 2000 02:48:14 +0000
(
02:48
+0000)
p4raw-id: //depot/perl@5768
pp_sys.c
patch
|
blob
|
history
diff --git
a/pp_sys.c
b/pp_sys.c
index
90c1221
..
5831f4c
100644
(file)
--- a/
pp_sys.c
+++ b/
pp_sys.c
@@
-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 ((S
S
ize_t)length < 0)
DIE(aTHX_ "Negative length");
SETERRNO(0,0);
io = GvIO(gv);