summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2021-07-03 14:52:54 -0700
committerJacob Palecki <[email protected]>2021-07-03 14:52:54 -0700
commit44c20e12d53434c47b08dbe855567316159d0469 (patch)
treeb64b844f16168a62addb8af98f2786de131824ff /common
parentFormat mostly correct (diff)
downloadrawaccel-44c20e12d53434c47b08dbe855567316159d0469.tar.xz
rawaccel-44c20e12d53434c47b08dbe855567316159d0469.zip
Small fixes, guide additions, tweaks
Diffstat (limited to 'common')
-rw-r--r--common/rawaccel-validate.hpp4
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 ||