Skip to content
Permalink
Browse files
Fix string conversion introduced with OpenLib.
no known conversion from 'const std::string' to 'const char*'
  • Loading branch information
anthraxx committed Mar 13, 2014
1 parent 938ff72 commit 35f93c0
Showing 1 changed file with 1 addition and 1 deletion.
@@ -50,7 +50,7 @@ class State {
}

void OpenLib(const std::string& modname, lua_CFunction openf) {
luaL_requiref(_l, modname, openf, 1);
luaL_requiref(_l, modname.c_str(), openf, 1);
}

void Push() {} // Base case

0 comments on commit 35f93c0

Please sign in to comment.