Correct printf with 64bit pointer
This commit is contained in:
parent
d87b482eac
commit
350e569c2c
@ -98,7 +98,7 @@ void show(struct outhead *headp)
|
|||||||
* Now we can show all names.
|
* Now we can show all names.
|
||||||
*/
|
*/
|
||||||
for (np = &name[0]; np < &name[headp->oh_nname]; np++) {
|
for (np = &name[0]; np < &name[headp->oh_nname]; np++) {
|
||||||
printf("Name %d:\n", np - name);
|
printf("Name %ld:\n",(long)(np - name));
|
||||||
showname(np);
|
showname(np);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -129,7 +129,7 @@ void printpatterns()
|
|||||||
while (p < current) {
|
while (p < current) {
|
||||||
if (p->p_constraint) {
|
if (p->p_constraint) {
|
||||||
/* The pattern has a constraint */
|
/* The pattern has a constraint */
|
||||||
fprintf(genc,"\tcase %d :\n",p - pattable);
|
fprintf(genc,"\tcase %ld :\n",(long)(p - pattable));
|
||||||
fprintf(genc,linedir,p->p_lineno,inpfile); /* linedirective */
|
fprintf(genc,linedir,p->p_lineno,inpfile); /* linedirective */
|
||||||
fputs("\tr = (",genc);
|
fputs("\tr = (",genc);
|
||||||
prconstraint(p->p_constraint);
|
prconstraint(p->p_constraint);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user