浏览代码

Detail: bad assertion in 'luaM_free_'

Roberto Ierusalimschy 6 年之前
父节点
当前提交
ea1322ef54
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lmem.c

+ 1 - 1
lmem.c

@@ -108,7 +108,7 @@ l_noret luaM_toobig (lua_State *L) {
 */
 void luaM_free_ (lua_State *L, void *block, size_t osize) {
   global_State *g = G(L);
-  lua_assert((block == 0) == (block == NULL));
+  lua_assert((osize == 0) == (block == NULL));
   (*g->frealloc)(g->ud, block, osize, 0);
   g->GCdebt -= osize;
 }