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:
32251b2
)
Some compilers get huffy if you do not cast a const pointer
author
Jarkko Hietaniemi
<jhi@iki.fi>
Fri, 15 Dec 2000 15:44:16 +0000
(15:44 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Fri, 15 Dec 2000 15:44:16 +0000
(15:44 +0000)
to a non-const when assigning.
p4raw-id: //depot/perl@8132
gv.c
patch
|
blob
|
history
diff --git
a/gv.c
b/gv.c
index
fa830bf
..
3a81248
100644
(file)
--- a/
gv.c
+++ b/
gv.c
@@
-1196,7
+1196,7
@@
Perl_Gv_AMupdate(pTHX_ HV *stash)
for (i = 1; i < lim; i++)
amt.table[i] = Nullcv;
for (; i < NofAMmeth; i++) {
- char *cooky = PL_AMG_names[i];
+ char *cooky =
(char*)
PL_AMG_names[i];
/* Human-readable form, for debugging: */
char *cp = (i >= DESTROY_amg ? cooky : AMG_id2name(i));
STRLEN l = strlen(cooky);