Skip to content

Commit 8da4e41

Browse files
committed
openni2: Fix msvc warning
1 parent 803e7fb commit 8da4e41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openni2/VideoStream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ OniStatus VideoStream::setProperty(int propertyId, const void* data, int dataSiz
266266
LogError("Unexpected size for ONI_STREAM_PROPERTY_MIRRORING");
267267
return ONI_STATUS_ERROR;
268268
}
269-
mirroring = *(static_cast<const OniBool*>(data));
269+
mirroring = !!*(static_cast<const OniBool*>(data));
270270
raisePropertyChanged(propertyId, data, dataSize);
271271
return ONI_STATUS_OK;
272272
}

0 commit comments

Comments
 (0)