Skip to content

Commit 374b58c

Browse files
committed
Report Error if the ratio and filter do not match.
Signed-off-by: Liang <xiaoxia.liang@intel.com>
1 parent 583f684 commit 374b58c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Library/Raisr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ static RNLERRORTYPE ReadTrainedData(std::string hashtablePath, std::string QStrP
319319
return RNLErrorBadParameter;
320320
}
321321

322-
if (gUsePixelType && pixelTypes != gRatio * gRatio)
322+
if (pixelTypes != (int)gRatio * (int)gRatio)
323323
{
324324
std::cout << "[RAISR ERROR] HashTable format is not compatible in number of pixel types!\n";
325325
return RNLErrorBadParameter;

0 commit comments

Comments
 (0)