diff options
Diffstat (limited to 'src/linda.cpp')
-rw-r--r-- | src/linda.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/linda.cpp b/src/linda.cpp index 1040cd6..a5db50a 100644 --- a/src/linda.cpp +++ b/src/linda.cpp | |||
@@ -52,9 +52,9 @@ static void check_key_types(lua_State* L_, int start_, int end_) | |||
52 | 52 | ||
53 | case LuaType::LIGHTUSERDATA: | 53 | case LuaType::LIGHTUSERDATA: |
54 | static constexpr std::array<std::reference_wrapper<UniqueKey const>, 3> kKeysToCheck{ kLindaBatched, kCancelError, kNilSentinel }; | 54 | static constexpr std::array<std::reference_wrapper<UniqueKey const>, 3> kKeysToCheck{ kLindaBatched, kCancelError, kNilSentinel }; |
55 | for (UniqueKey const& key : kKeysToCheck) { | 55 | for (UniqueKey const& _key : kKeysToCheck) { |
56 | if (key.equals(L_, _i)) { | 56 | if (_key.equals(L_, _i)) { |
57 | raise_luaL_error(L_, "argument #%d: can't use %s as a key", _i, key.debugName); | 57 | raise_luaL_error(L_, "argument #%d: can't use " STRINGVIEW_FMT " as a key", _i, _key.debugName.size(), _key.debugName.data()); |
58 | break; | 58 | break; |
59 | } | 59 | } |
60 | } | 60 | } |