diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-12-15 20:39:32 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-12-15 20:39:32 +0100 |
commit | 9fe137733670fbd5249f96ed62f0f2f92514d8b6 (patch) | |
tree | 256dfd526033c596a8378820424575a260420cc2 | |
parent | 192a222f5b8ed80a19588f9e6d0e9db537ace463 (diff) |
dtracy: avoid pointer to integer truncation warning on amd64
-rw-r--r-- | sys/src/9/port/dtracysys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/port/dtracysys.c b/sys/src/9/port/dtracysys.c index 1e525052d..367f4738b 100644 --- a/sys/src/9/port/dtracysys.c +++ b/sys/src/9/port/dtracysys.c @@ -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; |