提交 a6ba853b authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Make gcc happy by casting `enum class Class : uint16_t` to uint16_t when printing

上级 c293b404
......@@ -174,7 +174,8 @@ namespace RTC
default:
{
MS_WARN_TAG(ice, "unknown STUN class %" PRIu16 ", discarded", packet->GetClass());
MS_WARN_TAG(
ice, "unknown STUN class %" PRIu16 ", discarded", static_cast<uint16_t>(packet->GetClass()));
}
}
}
......
......@@ -535,7 +535,10 @@ namespace RTC
default:
{
MS_WARN_TAG(ice, "unknown STUN class %" PRIu16 ", cannot authenticate", this->klass);
MS_WARN_TAG(
ice,
"unknown STUN class %" PRIu16 ", cannot authenticate",
static_cast<uint16_t>(this->klass));
return Authentication::BAD_MESSAGE;
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论