From: Wolfgang Bangerth Date: Sun, 7 Apr 2013 16:31:52 +0000 (+0000) Subject: Avoid the use of an undefined preprocessor variable. X-Git-Tag: v8.0.0~316^2~56 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2ca3b74a1f4d72eed2d2ede55c0d1f96586ee04;p=dealii.git Avoid the use of an undefined preprocessor variable. git-svn-id: https://svn.dealii.org/branches/branch_bigger_global_dof_indices_4@29210 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/base/partitioner.h b/deal.II/include/deal.II/base/partitioner.h index 777b7a71a5..353ac2d5ac 100644 --- a/deal.II/include/deal.II/base/partitioner.h +++ b/deal.II/include/deal.II/base/partitioner.h @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2011, 2012 by deal.II authors +// Copyright (C) 2011, 2012, 2013 by deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -284,7 +284,7 @@ namespace Utilities * Exception */ DeclException2 (ExcIndexNotPresent, - types::global_dof_index, + types::global_dof_index, unsigned int, << "Global index " << arg1 << " neither owned nor ghost on proc " << arg2); @@ -407,7 +407,8 @@ namespace Utilities Partitioner::local_size () const { types::global_dof_index size= local_range_data.second - local_range_data.first; - Assert(size<=UINT32_MAX, ExcNotImplemented()); + Assert(size<=std::numeric_limits::max(), + ExcNotImplemented()); return static_cast(size); }