diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-04-11 13:51:38 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-04-11 13:51:38 +0200 |
| commit | 37d36fdd7f441aa184c4051d02e50e9e770f20f8 (patch) | |
| tree | ddcf8928dfcdebf4f029509c6bf2c62a8d294c1d /sys/src/9/kw/trap.c | |
| parent | 753fa51b77869eadcc27c00df34f09c3c9239fe2 (diff) | |
| download | plan9front-37d36fdd7f441aa184c4051d02e50e9e770f20f8.tar.xz | |
kernel: get rid of PTR2UINT() and UINT2PTR() macros
Diffstat (limited to 'sys/src/9/kw/trap.c')
| -rw-r--r-- | sys/src/9/kw/trap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/kw/trap.c b/sys/src/9/kw/trap.c index ebd98db6f..131413c11 100644 --- a/sys/src/9/kw/trap.c +++ b/sys/src/9/kw/trap.c @@ -602,7 +602,7 @@ callwithureg(void (*fn)(Ureg*)) Ureg ureg; ureg.pc = getcallerpc(&fn); - ureg.sp = PTR2UINT(&fn); + ureg.sp = (uintptr)&fn; fn(&ureg); } |
