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:
d4fe4ad
)
silence warning in toke.c charnames support
author
Yves Orton
<demerphq@gmail.com>
Fri, 26 Oct 2012 09:41:10 +0000
(11:41 +0200)
committer
Yves Orton
<demerphq@gmail.com>
Sat, 27 Oct 2012 11:54:40 +0000
(13:54 +0200)
In a C sprintf the expectation is that * parameters are type "int".
toke.c
patch
|
blob
|
history
diff --git
a/toke.c
b/toke.c
index
8500573
..
45468b3
100644
(file)
--- a/
toke.c
+++ b/
toke.c
@@
-8935,7
+8935,7
@@
S_new_constant(pTHX_ const char *s, STRLEN len, const char *key, STRLEN keylen,
if (strEQ(key,"charnames")) {
msg = Perl_newSVpvf(aTHX_
/* The +3 is for '\N{'; -4 for that, plus '}' */
- "Unknown charname '%.*s'", typelen - 4, type + 3);
+ "Unknown charname '%.*s'",
(int)
typelen - 4, type + 3);
}
else {
msg = Perl_newSVpvf(aTHX_ "Constant(%s): %s%s%s",