Skip to content

Commit 267bbb3

Browse files
committed
Fixes warnings on destruction of MathObject.
1 parent d8de3d7 commit 267bbb3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

macros/contexts/contextExtensions.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ sub extensionContext {
467467
sub AUTOLOAD {
468468
our $AUTOLOAD;
469469
my $self = shift;
470-
return unless $self;
470+
return unless defined $self;
471471
my $class = $self->extensionContext;
472472
my $method = (split(/::/, $AUTOLOAD))[-1];
473473
return if $method eq 'DESTROY';

macros/contexts/contextSignificantFigures.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ =head1 DESCRIPTION
1818
1919
or
2020
21-
Context('LimitedSignificantFigures'); # TO BE DONE
21+
Context('LimitedSignificantFigures');
2222
2323
where the latter context, you or the student are not allowed to perform any operations on
2424
any numbers.

0 commit comments

Comments
 (0)