From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from f334.i.mail.ru (f334.i.mail.ru [217.69.130.205]) (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 D085B445320 for ; Wed, 22 Jul 2020 12:46:10 +0300 (MSK) From: =?UTF-8?B?SWx5YSBLb3NhcmV2?= MIME-Version: 1.0 Date: Wed, 22 Jul 2020 12:46:09 +0300 Reply-To: =?UTF-8?B?SWx5YSBLb3NhcmV2?= Message-ID: <1595411169.838162410@f334.i.mail.ru> Content-Type: multipart/alternative; boundary="--ALT--cC5bA5a3c0C8A8aA72C67F8b8F1146211595411169" In-Reply-To: <20200722085956.GA25532@tarantool.org> References: <20200721223242.24467-1-i.kosarev@tarantool.org> <20200722085956.GA25532@tarantool.org> Subject: Re: [Tarantool-patches] =?utf-8?q?=5BPATCH_v3=5D_lua=3A_assert_in_lua?= =?utf-8?q?=5Fgettop=28=29_in_case_of_negative_stack_size?= List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?TmlraXRhIFBldHRpaw==?= Cc: tarantool-patches@dev.tarantool.org ----ALT--cC5bA5a3c0C8A8aA72C67F8b8F1146211595411169 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 CkhpIQoKVGhhbmtzIHRvIEBpZ29ybXVua2luIHdlIGRpc2NvdmVyZWQgbW9yZSBkZXRhaWxzIG9m IHRoaXMgcHJvYmxlbS4KVHVybnMgb3V0IHdlIGNhbiBzZWUgbHVhX1N0YXRlIHN0b3JlZCBpbiBw b3J0IGFuZCBpdCBzZWVtcyB0aGF0CnNvbWV0aGluZyBpcyB0b3RhbGx5IHdyb25nIGhlcmU6IGl0 IHBvaW50cyB0byBzb21lIGZ1bmN0aW9uIGFkZHJlc3MKKHBvcnRfbHVhX2R1bXBfMTYoKSkuIFRo dXMgSSB3aWxsIG1ha2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