Skip to content

Commit

Permalink
Merge pull request luvit#273 from uudiin/master
Browse files Browse the repository at this point in the history
fix error compile as pure C code by VS
  • Loading branch information
creationix committed Jan 11, 2018
2 parents 6eaf7d8 + 3b319f1 commit 272a341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lhandle.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ static int luv_is_callable(lua_State* L, int index) {
}

static void luv_check_callable(lua_State* L, int index) {
const char *msg;
const char *typearg; /* name for the type of the actual argument */
if (luv_is_callable(L, index))
return;

const char *msg;
const char *typearg; /* name for the type of the actual argument */
if (luaL_getmetafield(L, index, "__name") == LUA_TSTRING)
typearg = lua_tostring(L, -1); /* use the given type name */
else if (lua_type(L, index) == LUA_TLIGHTUSERDATA)
Expand Down

0 comments on commit 272a341

Please sign in to comment.