Browse Source

Fixed compilation warning for MSVC

Paul-Louis Ageneau 5 years ago
parent
commit
b9a663de75
1 changed files with 2 additions and 2 deletions
  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);
 }