Skip to content

Commit a389e98

Browse files
committed
Fix contextFraction.pl with reduceConstants disabled.
This fixes issue #1325. The change is just what @dpvc suggested. There is a MWE posted in the issue.
1 parent bab8339 commit a389e98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macros/contexts/contextFraction.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ sub _check {
709709
$self->{type} = $Value::Type{number};
710710
} else {
711711
&{ $self->super('_check') }($self);
712-
$self->setExtensionClass('MINUS') if $self->{op}->class eq 'Number';
712+
$self->setExtensionClass('MINUS') if $self->extensionClassMatch($self->{op}, 'MINUS', 'INTEGER');
713713
}
714714
$self->mutate;
715715
}

0 commit comments

Comments
 (0)