summaryrefslogtreecommitdiffstats
path: root/src/core/thread.lua
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-03 07:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-03 07:49:50 +0000
commit216afbe7cc62a59d1866a6524a214646361d3dc7 (patch)
tree1f334ba713f90066fa6f790ca757b0046cd9a181 /src/core/thread.lua
parentAdding upstream version 1.3.0. (diff)
downloaddnsjit-216afbe7cc62a59d1866a6524a214646361d3dc7.tar.xz
dnsjit-216afbe7cc62a59d1866a6524a214646361d3dc7.zip
Adding upstream version 1.4.0.upstream/1.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/core/thread.lua')
-rw-r--r--src/core/thread.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/thread.lua b/src/core/thread.lua
index e79d356..577e9bf 100644
--- a/src/core/thread.lua
+++ b/src/core/thread.lua
@@ -1,4 +1,4 @@
--- Copyright (c) 2018-2023, OARC, Inc.
+-- Copyright (c) 2018-2024 OARC, Inc.
-- All rights reserved.
--
-- This file is part of dnsjit.
@@ -87,7 +87,7 @@ function Thread:push(...)
if t == "string" then
C.core_thread_push_string(self, obj, #obj)
elseif t == "number" then
- C.core_thread_push_int64(self, obj)
+ C.core_thread_push_number(self, obj)
else
local ptr, type, module = obj:share()
C.core_thread_push(self, ptr, type, #type, module, #module)
@@ -108,7 +108,7 @@ function Thread:pop(num)
end
if item.ptr == nil then
if item.str == nil then
- return tonumber(item.i64)
+ return tonumber(item.num)
end
return ffi.string(item.str)
end
@@ -123,7 +123,7 @@ function Thread:pop(num)
if item.ptr == nil then
if item.str == nil then
- table.insert(ret, tonumber(item.i64))
+ table.insert(ret, tonumber(item.num))
else
table.insert(ret, ffi.string(item.str))
end