summaryrefslogtreecommitdiff
path: root/xmake/core/base/bytes.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-20 22:55:44 +0800
committerruki <[email protected]>2021-09-20 22:55:44 +0800
commit02d6208da20b9e6a6571ed716c16ed04d979b036 (patch)
treee26f4658611029b0922281da7cb43a30e238d0c6 /xmake/core/base/bytes.lua
parented1c24645198aa1451ee22c005a16fa7b8e4d5bc (diff)
add libc.ptraddr
Diffstat (limited to 'xmake/core/base/bytes.lua')
-rw-r--r--xmake/core/base/bytes.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/bytes.lua b/xmake/core/base/bytes.lua
index a4a963762..d29cfb3b4 100644
--- a/xmake/core/base/bytes.lua
+++ b/xmake/core/base/bytes.lua
@@ -184,7 +184,7 @@ end
-- get data address
function _instance:caddr()
- return tonumber(ffi.cast('unsigned long long', self:cdata()))
+ return libc.ptraddr(self:cdata())
end
-- readonly?