Skip to content

Commit

Permalink
Merge pull request #1804 from Expensify/john-fix-int-add
Browse files Browse the repository at this point in the history
Do not use + operator with int to string
  • Loading branch information
marcochavezf authored Jul 11, 2024
2 parents 8f46054 + b950eac commit 775d640
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#" + SToStr(result));
}
// Grab the resolved address.
sockaddr_in* addr = (sockaddr_in*)resolved->ai_addr;
Expand Down

0 comments on commit 775d640

Please sign in to comment.