allow range weights of 0

This commit is contained in:
a1xd 2022-04-13 17:02:02 -04:00
parent 2896b8a09c
commit a69f398964

View file

@ -174,7 +174,7 @@ namespace rawaccel {
error("Lp norm must be positive (default=2)");
}
if (args.range_weights.x <= 0 || args.range_weights.y <= 0) {
if (args.range_weights.x < 0 || args.range_weights.y < 0) {
error("range weights"" must be positive");
}