diff options
| author | ruki <[email protected]> | 2021-09-20 22:55:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-20 22:55:44 +0800 |
| commit | 02d6208da20b9e6a6571ed716c16ed04d979b036 (patch) | |
| tree | e26f4658611029b0922281da7cb43a30e238d0c6 /xmake/core/base/bytes.lua | |
| parent | ed1c24645198aa1451ee22c005a16fa7b8e4d5bc (diff) | |
add libc.ptraddr
Diffstat (limited to 'xmake/core/base/bytes.lua')
| -rw-r--r-- | xmake/core/base/bytes.lua | 2 |
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? |
