Fix empty check to work correctly when using auto_ptr

This commit is contained in:
Cary R 2020-12-28 04:33:34 -08:00
parent 04bd450acb
commit f4c79f5629
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998-2019 Stephen Williams (steve@icarus.com)
* Copyright (c) 1998-2020 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
@ -223,7 +223,7 @@ ostream& vector_type_t::debug_dump(ostream&fd) const
{
if (signed_flag)
fd << "signed ";
if (pdims==nullptr) {
if (!pdims.get()) {
fd << "/* vector_type_t nil */";
return fd;
}