From 168c8f96304a4caeddd1cfc6650cf2145030904b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 17 May 2001 11:29:01 +0000 Subject: [PATCH] Fix a horribly importable place. git-svn-id: https://svn.dealii.org/trunk@4627 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/fe_update_flags.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deal.II/deal.II/include/fe/fe_update_flags.h b/deal.II/deal.II/include/fe/fe_update_flags.h index bf1e73046c..5cbf01d3a0 100644 --- a/deal.II/deal.II/include/fe/fe_update_flags.h +++ b/deal.II/deal.II/include/fe/fe_update_flags.h @@ -207,10 +207,11 @@ enum UpdateFlags inline -UpdateFlags& +UpdateFlags & operator |= (UpdateFlags& f1, const UpdateFlags& f2) { - return ((UpdateFlags) (((int)f1) |= f2)); + f1 = static_cast (f1 | f2); + return f1; } @@ -224,10 +225,11 @@ operator | (const UpdateFlags& f1, const UpdateFlags& f2) } inline -UpdateFlags& +UpdateFlags & operator &= (UpdateFlags& f1, const UpdateFlags& f2) { - return ((UpdateFlags) (((int)f1) &= f2)); + f1 = static_cast (f1 & f2); + return f1; } -- 2.39.5