From 472a0ea4c175828d0962d34b011606ed2894351e Mon Sep 17 00:00:00 2001 From: Inversion <40722286+NeoInversion@users.noreply.github.com> Date: Wed, 10 Feb 2021 22:14:58 -0800 Subject: [PATCH] Updated baselib in accordance with cosmoV_readCString --- src/cbaselib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cbaselib.c b/src/cbaselib.c index c834ccb..8bf93ba 100644 --- a/src/cbaselib.c +++ b/src/cbaselib.c @@ -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; }