From b75d87f63d7b0ccbdbdc1e20bac5b4759caaf494 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 6 Oct 2015 18:08:58 +0200 Subject: net.websocket.frames: Fix syntax error due to code copy pasting --- net/websocket/frames.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/websocket') diff --git a/net/websocket/frames.lua b/net/websocket/frames.lua index 95e41479..737f46bb 100644 --- a/net/websocket/frames.lua +++ b/net/websocket/frames.lua @@ -49,8 +49,8 @@ local function get_byte(x, n) end local function pack_uint64be(x) local h = band(x / 2^32, 2^32-1); - return s_char(get_byte(h, 24), get_byte(h, 16), get_byte(h, 8), band(h, 0xFF)); - get_byte(x, 24), get_byte(x, 16), get_byte(x, 8), band(x, 0xFF); + return s_char(get_byte(h, 24), get_byte(h, 16), get_byte(h, 8), band(h, 0xFF), + get_byte(x, 24), get_byte(x, 16), get_byte(x, 8), band(x, 0xFF)); end if s_pack then -- cgit v1.2.3