diff options
Diffstat (limited to 'src/interp/i-special.boot')
-rw-r--r-- | src/interp/i-special.boot | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interp/i-special.boot b/src/interp/i-special.boot index 053f6b75..4be81980 100644 --- a/src/interp/i-special.boot +++ b/src/interp/i-special.boot @@ -1,6 +1,6 @@ -- Copyright (c) 1991-2002, The Numerical Algorithms Group Ltd. -- All rights reserved. --- Copyright (C) 2007-2011, Gabriel Dos Reis. +-- Copyright (C) 2007-2012, Gabriel Dos Reis. -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without @@ -1705,7 +1705,7 @@ isPatMatch(l,pats) == n:=#restPats m:=#l-n m<0 => $subs:="failed" - ZEROP n => $subs:=[[var,:l],:$subs] + n = 0 => $subs:=[[var,:l],:$subs] $subs:=[[var,:[x for x in l for i in 1..m]],:$subs] isPatMatch(drop(m,l),restPats) isPatMatch(first l,pat) = "failed" => "failed" |