mirror of
https://github.com/CPunch/Cosmo.git
synced 2025-12-22 18:40:04 +00:00
fix cosmoB_loadObjLib()
- wrong # of pairs passed to cosmoV_makeTable - minor refactoring of cmem.c:sweep()
This commit is contained in:
@@ -243,7 +243,7 @@ COSMO_API void cosmoB_loadObjLib(CState *state)
|
||||
cosmoV_pushString(state, "__proto"); // key
|
||||
cosmoV_pushCFunction(state, cosmoB_ogetProto); // value
|
||||
|
||||
cosmoV_makeTable(state, 2);
|
||||
cosmoV_makeTable(state, 1);
|
||||
|
||||
// make __setter table
|
||||
cosmoV_pushString(state, "__setter");
|
||||
|
||||
Reference in New Issue
Block a user