Skip to content

Conversation

cc682
Copy link
Contributor

@cc682 cc682 commented Apr 16, 2020

LState.CheckString will fail when passed a number param, this is different with lua 5.1.This is the document from lua.org:

luaL_checklstring
const char *luaL_checklstring (lua_State *L, int narg, size_t *l);
Checks whether the function argument narg is a string and returns this string; if l is not NULL fills *l with the string's length.

This function uses lua_tolstring to get its result, so all conversions and caveats of that function apply here.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 88.117% when pulling a519e4d on cc682:master into ab39c60 on yuin:master.

@yuin yuin merged commit 36862c5 into yuin:master May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants