Skip to content

Commit

Permalink
Do not add int to string
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmlee101 committed Jul 10, 2024
1 parent 8c481b8 commit ef2c07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libstuff/libstuff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,7 @@ int S_socket(const string& host, bool isTCP, bool isPort, bool isBlocking) {
// There was a problem.
if (result || !resolved) {
freeaddrinfo(resolved);
STHROW("can't resolve host error no#" + result);
STHROW("can't resolve host error no#" << result);
}
// Grab the resolved address.
sockaddr_in* addr = (sockaddr_in*)resolved->ai_addr;
Expand Down

0 comments on commit ef2c07e

Please sign in to comment.