summaryrefslogtreecommitdiff
path: root/lib/std/ipparse.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/ipparse.myr')
-rw-r--r--lib/std/ipparse.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/ipparse.myr b/lib/std/ipparse.myr
index 78cb619..16da94e 100644
--- a/lib/std/ipparse.myr
+++ b/lib/std/ipparse.myr
@@ -116,7 +116,7 @@ const delim = {ip, sep, ok
;;
}
-generic num = {ip, lo, hi, base, sep, ok -> (@a::(numeric,integral), byte[:], bool)
+generic num = {ip, lo, hi, base, sep, ok -> (@a, byte[:], bool) :: numeric,integral @a
var len
if !ok
@@ -133,7 +133,7 @@ generic num = {ip, lo, hi, base, sep, ok -> (@a::(numeric,integral), byte[:], bo
if v < lo || v > hi
-> (0, "", false)
;;
- -> ((v : @a::(numeric,integral)), ip[len:], true)
+ -> ((v : @a), ip[len:], true)
| `std.None:
-> (0, "", false)
;;