aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-11 16:53:53 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-11 16:53:53 -0200
commit7ad20af2cf478c8ed900c1906f16ff73d4676851 (patch)
tree2738a3833278ae136cf9757a59fc3f73ab13cdd4 /llimits.h
parentbfb88e99e9cbc492b35e5dc53594b1d1216171cd (diff)
downloadlua-7ad20af2cf478c8ed900c1906f16ff73d4676851.tar.gz
lua-7ad20af2cf478c8ed900c1906f16ff73d4676851.tar.bz2
lua-7ad20af2cf478c8ed900c1906f16ff73d4676851.zip
more freedom in handling memory-allocation errors (not all allocations
automatically raise an error), which allows fixing a bug when resizing a table.
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llimits.h b/llimits.h
index 58346140..a939c799 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.145 2017/11/23 16:35:54 roberto Exp roberto $ 2** $Id: llimits.h,v 1.146 2017/12/01 15:08:14 roberto Exp roberto $
3** Limits, basic types, and some other 'installation-dependent' definitions 3** Limits, basic types, and some other 'installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -304,7 +304,7 @@ typedef unsigned long Instruction;
304#else 304#else
305/* realloc stack keeping its size */ 305/* realloc stack keeping its size */
306#define condmovestack(L,pre,pos) \ 306#define condmovestack(L,pre,pos) \
307 { int sz_ = (L)->stacksize; pre; luaD_reallocstack((L), sz_); pos; } 307 { int sz_ = (L)->stacksize; pre; luaD_reallocstack((L), sz_, 0); pos; }
308#endif 308#endif
309 309
310#if !defined(HARDMEMTESTS) 310#if !defined(HARDMEMTESTS)