From 92150dd2e9cc67710b5a9b1ca3127e558b813861 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Mon, 5 Jan 2015 18:23:46 +0800 Subject: [PATCH] int64 library is removed --- lualib/redis.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lualib/redis.lua b/lualib/redis.lua index 87069e28..b1e44185 100644 --- a/lualib/redis.lua +++ b/lualib/redis.lua @@ -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