mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-21 23:10:05 +00:00
Updated baselib in accordance with cosmoV_readCString
This commit is contained in:
parent
76574c7860
commit
472a0ea4c1
@ -121,7 +121,7 @@ int cosmoB_error(CState *state, int nargs, CValue *args) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
cosmoV_error(state, "%s", cosmoO_readCString(cosmoV_readString(args[0])));
|
||||
cosmoV_error(state, "%s", cosmoV_readCString(args[0]));
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -516,7 +516,7 @@ int cosmoB_sLen(CState *state, int nargs, CValue *args) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
cosmoV_pushNumber(state, strlen(cosmoO_readCString(cosmoV_readString(args[0]))));
|
||||
cosmoV_pushNumber(state, strlen(cosmoV_readCString(args[0])));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user