From 7d90a4e7d9f41afd6b3068d23ccf9d9fa7372e33 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 12 Aug 2019 21:37:59 -0600 Subject: [PATCH] Fix an assertion that was missing a semicolon. --- source/grid/grid_in.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/grid/grid_in.cc b/source/grid/grid_in.cc index 6f5a04eedd..b8cdce11b1 100644 --- a/source/grid/grid_in.cc +++ b/source/grid/grid_in.cc @@ -3007,10 +3007,10 @@ GridIn::read_assimp(const std::string &filename, aiProcess_OptimizeGraph | aiProcess_OptimizeMeshes); // If the import failed, report it - AssertThrow(scene, ExcMessage(importer.GetErrorString())) + AssertThrow(scene != nullptr, ExcMessage(importer.GetErrorString())); - AssertThrow(scene->mNumMeshes, - ExcMessage("Input file contains no meshes.")); + AssertThrow(scene->mNumMeshes != 0, + ExcMessage("Input file contains no meshes.")); AssertThrow((mesh_index == numbers::invalid_unsigned_int) || (mesh_index < scene->mNumMeshes), -- 2.39.5