mirror of
https://github.com/RawAccelOfficial/rawaccel.git
synced 2025-05-11 18:36:46 +02:00
allow range weights of 0
This commit is contained in:
parent
2896b8a09c
commit
a69f398964
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue