Skip to content

Commit

Permalink
add missing explicit cast
Browse files Browse the repository at this point in the history
adds a missing explicit cast to ofxTCPManager.
  • Loading branch information
tgfrerer committed Oct 12, 2019
1 parent fa63aa0 commit 09ccd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/ofxNetwork/src/ofxTCPManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ bool ofxTCPManager::Bind(unsigned short usPort, bool bReuse)

if (bReuse) {
int enable = 1;
if (setsockopt(m_hSocket,SOL_SOCKET,SO_REUSEADDR,&enable,sizeof(int)) < 0){
if (setsockopt(m_hSocket,SOL_SOCKET,SO_REUSEADDR,(char*)&enable,sizeof(int)) < 0){
ofxNetworkCheckError();
return false;
}
Expand Down

0 comments on commit 09ccd34

Please sign in to comment.