summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
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 ||