Procházet zdrojové kódy

Fixed compilation warning for MSVC

Paul-Louis Ageneau před 5 roky
rodič
revize
b9a663de75
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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);
 }