Skip to content

Commit c37311d

Browse files
authored
Merge pull request #1338 from somiaj/fix-fraction-equal-comparision
Use same context when creating a new context::Fraction::Parser::Number
2 parents 004f84f + 2465f46 commit c37311d

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
@@ -789,7 +789,7 @@ package context::Fraction::Parser::Number;
789789

790790
sub new {
791791
my $self = shift;
792-
my $num = &{ $self->super('new') }($self, @_);
792+
my $num = &{ $self->super('new', $_[0]->context) }($self, @_);
793793
$num->setExtensionClass('INTEGER') if $num->{value_string} =~ m/^[-+]?[0-9]+$/;
794794
return $num->mutate;
795795
}

0 commit comments

Comments
 (0)