From 930124472561d7c4e84ee7fd2b1bee8ac1b64ba2 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 21 Sep 2021 00:36:08 +0800 Subject: add setbyte --- xmake/core/base/bytes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/core/base/bytes.lua') diff --git a/xmake/core/base/bytes.lua b/xmake/core/base/bytes.lua index 0486f0178..300d2a073 100644 --- a/xmake/core/base/bytes.lua +++ b/xmake/core/base/bytes.lua @@ -411,7 +411,7 @@ function _instance:__newindex(key, value) if key < 1 or key > self:size() then os.raise("%s: index(%d/%d) out of bounds!", self, key, self:size()) end - self._CDATA[key - 1] = value + libc.setbyte(self._CDATA, key - 1, value) return elseif type(key) == "table" then local start, last = key[1], key[2] -- cgit v1.3.1