lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


This is not a for loop bug.  There is an error in db_errorfb().

static int db_errorfb (lua_State *L) {
  int level;
  int firstpart = 1;  /* still before eventual `...' */
  int arg;
  lua_State *L1 = getthread(L, &arg);
  lua_Debug ar;
  if (lua_isnumber(L, arg+2)) {
    level = lua_tointeger(L, arg+2);

level == -858993460 == 0xcccccccc

I can't remember what that means under the Visual C++ C runtime.  I think it
is uninitialized memory.

Josh