summaryrefslogtreecommitdiff
path: root/xmake/core/base/bytes.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-12-17 22:43:12 +0800
committerruki <[email protected]>2019-12-17 10:19:16 +0800
commitdd1833df1bd7872b72d08de8050ec335bd27be8d (patch)
tree37c760999ececd851e40bb0a8ee80aa0da4ccb47 /xmake/core/base/bytes.lua
parentfc61f2255c3c3cfd6b55b3ac6ffc3b3d52642add (diff)
fix bytes.caddr
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 6c62697aa..998719e4d 100644
--- a/xmake/core/base/bytes.lua
+++ b/xmake/core/base/bytes.lua
@@ -154,7 +154,7 @@ end
-- get data address
function _instance:caddr()
- return tonumber(ffi.cast('long', self:cdata()))
+ return tonumber(ffi.cast('unsigned long', self:cdata()))
end
-- readonly?