diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-29 17:31:45 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-29 17:31:45 +0200 |
commit | a156aaeb07fada043b308409dcffcae1726eec0b (patch) | |
tree | f15a5d60cda30607260d896598ea33f8619af53a /src/lanes.lua | |
parent | d47758d58d532a9716ad4fd85cc806704df13735 (diff) | |
download | lanes-a156aaeb07fada043b308409dcffcae1726eec0b.tar.gz lanes-a156aaeb07fada043b308409dcffcae1726eec0b.tar.bz2 lanes-a156aaeb07fada043b308409dcffcae1726eec0b.zip |
Fix clang-tidy issues (most notably Microsoft-specific explicit constructor calls)
Diffstat (limited to 'src/lanes.lua')
-rw-r--r-- | src/lanes.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lanes.lua b/src/lanes.lua index 982de98..e7763b1 100644 --- a/src/lanes.lua +++ b/src/lanes.lua | |||
@@ -115,8 +115,8 @@ end | |||
115 | local param_checkers = | 115 | local param_checkers = |
116 | { | 116 | { |
117 | nb_keepers = function(val_) | 117 | nb_keepers = function(val_) |
118 | -- nb_keepers should be a number > 0 | 118 | -- nb_keepers should be a number in [1,100] (so that nobody tries to run OOM by specifying a huge amount) |
119 | return type(val_) == "number" and val_ > 0 | 119 | return type(val_) == "number" and val_ > 0 and val_ <= 100 |
120 | end, | 120 | end, |
121 | keepers_gc_threshold = function(val_) | 121 | keepers_gc_threshold = function(val_) |
122 | -- keepers_gc_threshold should be a number | 122 | -- keepers_gc_threshold should be a number |