dtracy: avoid pointer to integer truncation warning on amd64

This commit is contained in:
cinap_lenrek 2018-12-15 20:39:32 +01:00
parent 192a222f5b
commit 9fe1377336

View file

@ -240,7 +240,7 @@ sysenable(DTProbe *p)
int i;
Syscall *z;
i = (int) p->aux;
i = (int)(uintptr)p->aux;
assert(i >= 0 && i < nsyscall);
if(dtpsysentry[i]->nenable + dtpsysreturn[i]->nenable == 0)
z = systab[i], systab[i] = wraptab[i], wraptab[i] = z;
@ -253,7 +253,7 @@ sysdisable(DTProbe *p)
int i;
Syscall *z;
i = (int) p->aux;
i = (int)(uintptr)p->aux;
assert(i >= 0 && i < nsyscall);
if(dtpsysentry[i]->nenable + dtpsysreturn[i]->nenable == 0)
z = systab[i], systab[i] = wraptab[i], wraptab[i] = z;