Log Message:
-----------
Minor change (don't need to check for isValue since we are already
assuming that in the previous line).
Modified Files:
--------------
pg/lib/Value:
Union.pm
Revision Data
-------------
Index: Union.pm
===================================================================
RCS file: /webwork/cvs/system/pg/lib/Value/Union.pm,v
retrieving revision 1.39
retrieving revision 1.40
diff -Llib/Value/Union.pm -Llib/Value/Union.pm -u -r1.39 -r1.40
--- lib/Value/Union.pm
+++ lib/Value/Union.pm
@@ -104,7 +104,7 @@
return $context->Package("Set")->new($context,$x,@_) if scalar(@_) > 0 || Value::isReal($x);
return $x->inContext($context) if ref($x) eq $class;
$x = $context->Package("Interval")->promote($context,$x) if $x->canBeInUnion;
- return $self->make($context,$x) if Value::isValue($x) && $x->isSetOfReals;
+ return $self->make($context,$x) if $x->isSetOfReals;
Value::Error("Can't convert %s to an Interval, Set or Union",Value::showClass($x));
}
|