Skip to content

Commit

Permalink
Merge pull request ofTheo#16 from martinus/master
Browse files Browse the repository at this point in the history
add cast to get rid of compiler warnings (VS2010)
  • Loading branch information
ofTheo committed Jan 12, 2015
2 parents 344348d + 3873d7f commit be3cf2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions videoInputSrcAndDemos/libs/videoInput/videoInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ void videoDevice::destroyGraph(){

while( FilterInfo.achName[count] != 0x00 )
{
buffer[count] = FilterInfo.achName[count];
buffer[count] = static_cast<char>(FilterInfo.achName[count]);
count++;
}

Expand Down Expand Up @@ -887,7 +887,7 @@ int videoInput::listDevices(bool silent){
int count = 0;
int maxLen = sizeof(deviceNames[0])/sizeof(deviceNames[0][0]) - 2;
while( varName.bstrVal[count] != 0x00 && count < maxLen) {
deviceNames[deviceCounter][count] = varName.bstrVal[count];
deviceNames[deviceCounter][count] = static_cast<char>(varName.bstrVal[count]);
count++;
}
deviceNames[deviceCounter][count] = 0;
Expand Down

0 comments on commit be3cf2f

Please sign in to comment.