From f4c79f562990bdf5d14f4b9221629f540652a8fa Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 28 Dec 2020 04:33:34 -0800 Subject: [PATCH] Fix empty check to work correctly when using auto_ptr --- pform_dump.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pform_dump.cc b/pform_dump.cc index dec209fd7..3d607d368 100644 --- a/pform_dump.cc +++ b/pform_dump.cc @@ -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; }