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