0023072: Eliminate compiler warnings (level 3) on Windows / MSVC++
[occt.git] / src / DrawTrSurf / DrawTrSurf.cxx
index 732d428..47d6878 100755 (executable)
@@ -1769,7 +1769,7 @@ static void pntsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
   OS.precision(15);
 #else
   long form = OS.setf(ios::scientific);
-  int  prec = OS.precision(15);
+  std::streamsize prec = OS.precision(15);
 #endif
   gp_Pnt P = N->Point();
   if (N->Is3D()) {
@@ -1831,7 +1831,7 @@ static void triasave(const Handle(Draw_Drawable3D)&d, ostream& OS)
   OS.precision(15);
 #else
   long form = OS.setf(ios::scientific);
-  int  prec = OS.precision(15);
+  std::streamsize prec = OS.precision(15);
 #endif
   Poly::Write(T->Triangulation(),OS);
 #if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX)
@@ -1872,7 +1872,7 @@ static void poly3dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
   OS.precision(15);
 #else
   long form = OS.setf(ios::scientific);
-  int  prec = OS.precision(15);
+  std::streamsize prec = OS.precision(15);
 #endif
   Poly::Write(T->Polygon3D(),OS);
 #if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX)
@@ -1912,7 +1912,7 @@ static void poly2dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
   OS.precision(15);
 #else
   long form = OS.setf(ios::scientific);
-  int  prec = OS.precision(15);
+  std::streamsize prec = OS.precision(15);
 #endif
   Poly::Write(T->Polygon2D(),OS);
 #if defined(HAVE_IOS) && !defined(__sgi) && !defined(IRIX)