diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-11 16:53:53 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-11 16:53:53 -0200 |
commit | 7ad20af2cf478c8ed900c1906f16ff73d4676851 (patch) | |
tree | 2738a3833278ae136cf9757a59fc3f73ab13cdd4 /llimits.h | |
parent | bfb88e99e9cbc492b35e5dc53594b1d1216171cd (diff) | |
download | lua-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |