diff --git a/Geo/MPrism.h b/Geo/MPrism.h
index d304d810ea36e0f3ed9914d222776136388dbc91..2b14f051dad0ce1651ef18b6d43b0cf2047911b3 100644
--- a/Geo/MPrism.h
+++ b/Geo/MPrism.h
@@ -416,14 +416,14 @@ class MPrismN : public MPrism {
     if (ElementType::SerendipityFromTag(getTypeForMSH()) > 0)
       return 0;
     else
-      int n = _order-1; return (n-1 + 3*n) * n;
+      {int n = _order-1; return (n-1 + 3*n) * n;}
   }
   virtual int getNumVolumeVertices() const
   {
     if (ElementType::SerendipityFromTag(getTypeForMSH()) > 0)
       return 0;
     else
-      int n = _order-1; return n * (n * (n+1) / 2);
+      {int n = _order-1; return n * (n * (n+1) / 2);}
   }
   virtual int getNumEdgesRep();
   virtual void getEdgeRep(int num, double *x, double *y, double *z, SVector3 *n);