Explorar o código

Fixed compilation warning for MSVC

Paul-Louis Ageneau %!s(int64=5) %!d(string=hai) anos
pai
achega
b9a663de75
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      include/rtc/datachannel.hpp

+ 2 - 2
include/rtc/datachannel.hpp

@@ -108,8 +108,8 @@ template <typename Iterator> bool DataChannel::sendBuffer(Iterator first, Iterat
 	auto message = std::make_shared<Message>(size);
 	auto pos = message->begin();
 	for (Iterator it = first; it != last; ++it) {
-		auto [bytes, size] = to_bytes(*it);
-		pos = std::copy(bytes, bytes + size, pos);
+		auto [bytes, len] = to_bytes(*it);
+		pos = std::copy(bytes, bytes + len, pos);
 	}
 	return outgoing(message);
 }