diff options
| author | Jacob Palecki <[email protected]> | 2021-07-03 14:52:54 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2021-07-03 14:52:54 -0700 |
| commit | 44c20e12d53434c47b08dbe855567316159d0469 (patch) | |
| tree | b64b844f16168a62addb8af98f2786de131824ff /common | |
| parent | Format mostly correct (diff) | |
| download | rawaccel-44c20e12d53434c47b08dbe855567316159d0469.tar.xz rawaccel-44c20e12d53434c47b08dbe855567316159d0469.zip | |
Small fixes, guide additions, tweaks
Diffstat (limited to 'common')
| -rw-r--r-- | common/rawaccel-validate.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rawaccel-validate.hpp b/common/rawaccel-validate.hpp index 2f54b5f..e9d1120 100644 --- a/common/rawaccel-validate.hpp +++ b/common/rawaccel-validate.hpp @@ -83,8 +83,8 @@ namespace rawaccel { error("offset can not be negative"); } - if (args.cap <= 0) { - error("cap"" must be positive"); + if (args.cap < 0) { + error("cap"" must not be negative"); } if (args.growth_rate <= 0 || |