Skip to content

Commit e711eb9

Browse files
committed
Cast register error regtype to the correct type
1 parent 997d2d0 commit e711eb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LuaEngine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ int Eluna::Register(std::underlying_type_t<Hooks::RegisterTypes> regtype, uint32
853853
}
854854
luaL_unref(L, LUA_REGISTRYINDEX, functionRef);
855855
std::ostringstream oss;
856-
oss << "regtype " << static_cast<std::underlying_type_t<Hooks::RegisterTypes>>(regtype) << ", event " << event_id << ", entry " << entry << ", guid " <<
856+
oss << "regtype " << static_cast<unsigned int>(regtype) << ", event " << event_id << ", entry " << entry << ", guid " <<
857857
#if defined ELUNA_TRINITY
858858
guid.ToHexString()
859859
#else

0 commit comments

Comments
 (0)