fix check in memory limit in drr's GUI (and fix
error message in custodian-limit-memory) closes PR 13778
This commit is contained in:
parent
f79dfb4caf
commit
334052cb51
|
@ -4818,7 +4818,7 @@ module browser threading seems wrong.
|
|||
(define (is-valid-number? txt)
|
||||
(let* ([n (string->number (send txt get-text))])
|
||||
(and n
|
||||
(integer? n)
|
||||
(exact-positive-integer? n)
|
||||
(8 . <= . n))))
|
||||
|
||||
(define (background sd)
|
||||
|
|
|
@ -802,7 +802,7 @@ static Scheme_Object *custodian_limit_mem(int argc, Scheme_Object *args[])
|
|||
} else if (SCHEME_BIGNUMP(args[1]) && SCHEME_BIGPOS(args[1])) {
|
||||
lim = 0x3fffffff; /* more memory than we actually have */
|
||||
} else {
|
||||
scheme_wrong_contract("custodian-limit-memory", "positive-exact-integer?", 1, argc, args);
|
||||
scheme_wrong_contract("custodian-limit-memory", "exact-positive-integer?", 1, argc, args);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user