This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cast to signed before negating, to avoid compiler warnings
[perl5.git]
/
op.c
diff --git
a/op.c
b/op.c
index
3a3acb8
..
f9a1262
100644
(file)
--- a/
op.c
+++ b/
op.c
@@
-6739,9
+6739,9
@@
Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
(long)CopLINE(PL_curcop));
gv_efullname3(tmpstr, gv, NULL);
(void)hv_store(GvHV(PL_DBsub), SvPVX_const(tmpstr),
(long)CopLINE(PL_curcop));
gv_efullname3(tmpstr, gv, NULL);
(void)hv_store(GvHV(PL_DBsub), SvPVX_const(tmpstr),
- SvUTF8(tmpstr) ? -
SvCUR(tmpstr) :
SvCUR(tmpstr), sv, 0);
+ SvUTF8(tmpstr) ? -
(I32)SvCUR(tmpstr) : (I32)
SvCUR(tmpstr), sv, 0);
hv = GvHVn(db_postponed);
hv = GvHVn(db_postponed);
- if (HvTOTALKEYS(hv) > 0 && hv_exists(hv, SvPVX_const(tmpstr), SvUTF8(tmpstr) ? -
SvCUR(tmpstr) :
SvCUR(tmpstr))) {
+ if (HvTOTALKEYS(hv) > 0 && hv_exists(hv, SvPVX_const(tmpstr), SvUTF8(tmpstr) ? -
(I32)SvCUR(tmpstr) : (I32)
SvCUR(tmpstr))) {
CV * const pcv = GvCV(db_postponed);
if (pcv) {
dSP;
CV * const pcv = GvCV(db_postponed);
if (pcv) {
dSP;
@@
-8351,7
+8351,7
@@
Perl_ck_method(pTHX_ OP *o)
if (!(strchr(method, ':') || strchr(method, '\''))) {
OP *cmop;
if (!SvREADONLY(sv) || !SvFAKE(sv)) {
if (!(strchr(method, ':') || strchr(method, '\''))) {
OP *cmop;
if (!SvREADONLY(sv) || !SvFAKE(sv)) {
- sv = newSVpvn_share(method, SvUTF8(sv) ? -
SvCUR(sv) :
SvCUR(sv), 0);
+ sv = newSVpvn_share(method, SvUTF8(sv) ? -
(I32)SvCUR(sv) : (I32)
SvCUR(sv), 0);
}
else {
kSVOP->op_sv = NULL;
}
else {
kSVOP->op_sv = NULL;