Use `exact-integer?'.

original commit: 412fd4ff792935122c2b9a932a2d3eefd4040bc6
This commit is contained in:
Eli Barzilay 2010-06-20 18:20:53 -04:00
parent 79f7ee6472
commit a14cc164fa

View File

@ -28,16 +28,14 @@
(make-parameter null
(lambda (v)
(unless (and (list? v)
(andmap
(lambda (v)
(and (list? v)
(= 3 (length v))
(equal? (car v) "http")
(string? (car v))
(number? (caddr v))
(integer? (caddr v))
(<= 1 (caddr v) 65535)))
v))
(andmap (lambda (v)
(and (list? v)
(= 3 (length v))
(equal? (car v) "http")
(string? (car v))
(exact-integer? (caddr v))
(<= 1 (caddr v) 65535)))
v))
(raise-type-error
'current-proxy-servers
"list of list of scheme, string, and exact integer in [1,65535]"