mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-13 17:20:21 +02:00
Be more permissive with heap multiplier
Also if there's an error, print the right argument
This commit is contained in:
parent
815f206e28
commit
7461b2d5c3
1 changed files with 2 additions and 2 deletions
|
@ -321,8 +321,8 @@ int main(int argc, char *argv[]) {
|
|||
double multiplier = atof(argv[1]);
|
||||
size_t nthreads = atol(argv[2]);
|
||||
|
||||
if (!(1.0 < multiplier && multiplier < 100)) {
|
||||
fprintf(stderr, "Failed to parse heap multiplier '%s'\n", argv[2]);
|
||||
if (!(0.1 < multiplier && multiplier < 100)) {
|
||||
fprintf(stderr, "Failed to parse heap multiplier '%s'\n", argv[1]);
|
||||
return 1;
|
||||
}
|
||||
if (nthreads < 1 || nthreads > MAX_THREAD_COUNT) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue