mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
int64 library is removed
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
local skynet = require "skynet"
|
||||
local socket = require "socket"
|
||||
local socketchannel = require "socketchannel"
|
||||
local int64 = require "int64"
|
||||
|
||||
local table = table
|
||||
local string = string
|
||||
@@ -102,12 +101,8 @@ local function pack_value(lines, v)
|
||||
return
|
||||
end
|
||||
|
||||
local t = type(v)
|
||||
if t == "number" then
|
||||
v = tostring(v)
|
||||
elseif t == "userdata" then
|
||||
v = int64.tostring(int64.new(v),10)
|
||||
end
|
||||
v = tostring(v)
|
||||
|
||||
table.insert(lines,"$"..#v)
|
||||
table.insert(lines,v)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user