Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Test HttpServer build fix (#12001)",
"packageName": "react-native-windows",
"email": "julio.rocha@microsoft.com",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion vnext/Microsoft.ReactNative/CoreApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ static void SetProperties(JsonObject const &json, RNCoreApp *app) {
std::wstring nsName;
std::wstring localName;
if (lastDot != name.rend()) {
nsName = std::wstring{name.begin(), static_cast<uint64_t>(name.rend() - lastDot - 1)};
nsName = std::wstring{name.begin(), static_cast<size_t>(name.rend() - lastDot - 1)};
localName = std::wstring{lastDot.base()};
} else {
localName = name;
Expand Down
6 changes: 3 additions & 3 deletions vnext/Test/HttpServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ void HttpSession::Close()

#pragma region HttpServer

HttpServer::HttpServer(string &&address, uint16_t port, size_t concurrency)
: m_ioThreadCount{concurrency}
HttpServer::HttpServer(string &&address, uint16_t port, int concurrency)
: m_ioThreadCount{ static_cast<size_t>(concurrency) }
, m_ioContext{concurrency}
, m_acceptor{make_strand(m_ioContext)}
{
Expand Down Expand Up @@ -319,7 +319,7 @@ HttpServer::HttpServer(string &&address, uint16_t port, size_t concurrency)
}
}

HttpServer::HttpServer(uint16_t port, size_t concurrency)
HttpServer::HttpServer(uint16_t port, int concurrency)
: HttpServer("0.0.0.0", port, concurrency)
{
}
Expand Down
4 changes: 2 additions & 2 deletions vnext/Test/HttpServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ class HttpServer : public std::enable_shared_from_this<HttpServer>
// address - Valid IP address string (i.e. "127.0.0.1).
// port - TCP port number (i.e. 80).
///
HttpServer(std::string &&address, uint16_t port, size_t concurrency = 1);
HttpServer(uint16_t port, size_t concurrency = 1);
HttpServer(std::string &&address, uint16_t port, int concurrency = 1);
HttpServer(uint16_t port, int concurrency = 1);

~HttpServer();

Expand Down