From 5aa0f05ec8491874f6a7e79744f85c590c981b75 Mon Sep 17 00:00:00 2001 From: Chris AtLee Date: Mon, 11 Dec 2023 20:47:57 +0000 Subject: [PATCH] Remove upper bound of 1 for quotas --- ext/semian/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/semian/resource.c b/ext/semian/resource.c index 5a64d827..f0de2346 100644 --- a/ext/semian/resource.c +++ b/ext/semian/resource.c @@ -289,7 +289,7 @@ check_quota_arg(VALUE quota) if (TYPE(quota) != T_FIXNUM && TYPE(quota) != T_FLOAT) { rb_raise(rb_eTypeError, "expected decimal type for quota"); } - if (NUM2DBL(quota) <= 0 || NUM2DBL(quota) > 1) { + if (NUM2DBL(quota) <= 0) { rb_raise(rb_eArgError, "quota must be a decimal between 0 and 1"); } c_quota = NUM2DBL(quota);