ref: 9fe137733670fbd5249f96ed62f0f2f92514d8b6
parent: 192a222f5b8ed80a19588f9e6d0e9db537ace463
author: cinap_lenrek <[email protected]>
date: Sat Dec 15 15:39:32 EST 2018
dtracy: avoid pointer to integer truncation warning on amd64
--- a/sys/src/9/port/dtracysys.c
+++ b/sys/src/9/port/dtracysys.c
@@ -240,7 +240,7 @@
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 @@
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;