Skip to content

Commit

Permalink
Merge pull request opencv#3077 from kenlck:master
Browse files Browse the repository at this point in the history
  • Loading branch information
vpisarev committed Aug 11, 2014
2 parents 6df1198 + 911e1bd commit f937f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/videoio/src/cap_pvapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ bool CvCaptureCAM_PvAPI::setProperty( int property_id, double value )
}
else
{
cv::String ip=cv::format("%d.%d.%d.%d", ((int)value>>24)&255, ((int)value>>16)&255, ((int)value>>8)&255, (int)value&255);
cv::String ip=cv::format("%d.%d.%d.%d", ((unsigned int)value>>24)&255, ((unsigned int)value>>16)&255, ((unsigned int)value>>8)&255, (unsigned int)value&255);
if ((PvAttrEnumSet(Camera.Handle,"MulticastEnable", "On")==ePvErrSuccess) &&
(PvAttrStringSet(Camera.Handle, "MulticastIPAddress", ip.c_str())==ePvErrSuccess))
break;
Expand Down

0 comments on commit f937f4d

Please sign in to comment.