From 7ad20af2cf478c8ed900c1906f16ff73d4676851 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 11 Dec 2017 16:53:53 -0200 Subject: more freedom in handling memory-allocation errors (not all allocations automatically raise an error), which allows fixing a bug when resizing a table. --- llimits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llimits.h') diff --git a/llimits.h b/llimits.h index 58346140..a939c799 100644 --- a/llimits.h +++ b/llimits.h @@ -1,5 +1,5 @@ /* -** $Id: llimits.h,v 1.145 2017/11/23 16:35:54 roberto Exp roberto $ +** $Id: llimits.h,v 1.146 2017/12/01 15:08:14 roberto Exp roberto $ ** Limits, basic types, and some other 'installation-dependent' definitions ** See Copyright Notice in lua.h */ @@ -304,7 +304,7 @@ typedef unsigned long Instruction; #else /* realloc stack keeping its size */ #define condmovestack(L,pre,pos) \ - { int sz_ = (L)->stacksize; pre; luaD_reallocstack((L), sz_); pos; } + { int sz_ = (L)->stacksize; pre; luaD_reallocstack((L), sz_, 0); pos; } #endif #if !defined(HARDMEMTESTS) -- cgit v1.2.3-55-g6feb