diff options
Diffstat (limited to 'src/state.cpp')
-rw-r--r-- | src/state.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.cpp b/src/state.cpp index 4664486..27e595c 100644 --- a/src/state.cpp +++ b/src/state.cpp | |||
@@ -266,10 +266,10 @@ namespace state { | |||
266 | break; | 266 | break; |
267 | } | 267 | } |
268 | // open library | 268 | // open library |
269 | std::string_view const _libName{ _libs.substr(_prefixLen, _nameLen) }; | 269 | std::string_view const _libName{ _libs.substr(static_cast<size_t>(_prefixLen), static_cast<size_t>(_nameLen)) }; |
270 | Open1Lib(_L, _libName); | 270 | Open1Lib(_L, _libName); |
271 | // advance to next item (can't do this earlier as it invalidates iterators) | 271 | // advance to next item (can't do this earlier as it invalidates iterators) |
272 | _libs.remove_prefix(_prefixLen + _nameLen); | 272 | _libs.remove_prefix(static_cast<size_t>(_prefixLen + _nameLen)); |
273 | } | 273 | } |
274 | lua_gc(_L, LUA_GCRESTART, 0); | 274 | lua_gc(_L, LUA_GCRESTART, 0); |
275 | 275 | ||