lua-users home
lua-l archive

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


Hi,

the function lua_gc (lapi.cpp of Lua 5.3) contains this code fragment:

    case LUA_GCSTEP: {
      ...
      int oldrunning = g->gcrunning;
      ...
      g->gcrunning = oldrunning;
      ...
    }

The type of g->gcrunning is lu_byte. It would be more appropriate to use the same lu_byte type also for the oldrunning variable, wouldn't it?

Thank you

Tomáš Klinkovský