unused parameter, accidental string

This commit is contained in:
ThePhD 2017-08-07 07:59:13 -04:00
parent f1ff3d6492
commit 62b242bc96
2 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,7 @@ namespace sol {
}
if (it != e) {
for (std::size_t c = 0; c < 3; ++i, ++c) {
basechunkname[i] = ".";
basechunkname[i] = '.';
}
}
basechunkname[i] = '\0';

View File

@ -461,6 +461,7 @@ namespace sol {
#if SOL_LUA_VERSION > 501
load_status x = static_cast<load_status>(lua_load(L, reader, data, chunknametarget, to_string(mode).c_str()));
#else
(void)mode;
load_status x = static_cast<load_status>(lua_load(L, reader, data, chunknametarget));
#endif
return load_result(L, absolute_index(L, -1), 1, 1, x);