From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id F161C469719 for ; Sun, 8 Mar 2020 20:47:37 +0300 (MSK) From: Vladislav Shpilevoy Date: Sun, 8 Mar 2020 18:47:33 +0100 Message-Id: <52f89e63f044680d79f212ac91513c3738b8f1f6.1583689251.git.v.shpilevoy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 1/3] box: fix struct port_tuple.size wrong type in Lua List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, korablev@tarantool.org, imun@tarantool.org Original port_tuple in C has 'int size;' field. It was 'size_t size' in Lua. Since sizeof(size_t) usually is 8, and sizeof(int) is 4, this was a really bad typo. --- src/box/lua/schema.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/box/lua/schema.lua b/src/box/lua/schema.lua index f537c3cec..aba439ffb 100644 --- a/src/box/lua/schema.lua +++ b/src/box/lua/schema.lua @@ -84,7 +84,7 @@ ffi.cdef[[ struct port_tuple { const struct port_vtab *vtab; - size_t size; + int size; struct port_tuple_entry *first; struct port_tuple_entry *last; struct port_tuple_entry first_entry; -- 2.21.1 (Apple Git-122.3)