aboutsummaryrefslogtreecommitdiff
path: root/src/state.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-16 09:42:03 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-16 09:42:03 +0200
commit54acd7514dc0a2e9d593dd6312eae90ae6c0d6b5 (patch)
tree358653435a913392b8d8d028f0360c951b525307 /src/state.cpp
parent7d94b18dcc41ccdcb5c8e9cff658b7c2a84b283f (diff)
downloadlanes-54acd7514dc0a2e9d593dd6312eae90ae6c0d6b5.tar.gz
lanes-54acd7514dc0a2e9d593dd6312eae90ae6c0d6b5.tar.bz2
lanes-54acd7514dc0a2e9d593dd6312eae90ae6c0d6b5.zip
Fix/suppress MSVC /Wall warnings
Diffstat (limited to 'src/state.cpp')
-rw-r--r--src/state.cpp4
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