@@ -1136,14 +1136,14 @@ class Basic_viewer : public CGAL::QGLViewer
11361136
11371137 CGAL_assertion (bufn<NB_GL_BUFFERS);
11381138 buffers[bufn].bind ();
1139- buffers[bufn].allocate (positions.data (), positions.size ()*sizeof (float ));
1139+ buffers[bufn].allocate (positions.data (), static_cast < int >( positions.size ()*sizeof (float ) ));
11401140 rendering_program_p_l.enableAttributeArray (" a_Pos" );
11411141 rendering_program_p_l.setAttributeBuffer (" a_Pos" ,GL_FLOAT,0 ,3 );
11421142
11431143 ++bufn;
11441144 CGAL_assertion (bufn<NB_GL_BUFFERS);
11451145 buffers[bufn].bind ();
1146- buffers[bufn].allocate (colors.data (), colors.size ()*sizeof (float ));
1146+ buffers[bufn].allocate (colors.data (), static_cast < int >( colors.size ()*sizeof (float ) ));
11471147 rendering_program_p_l.enableAttributeArray (" a_Color" );
11481148 rendering_program_p_l.setAttributeBuffer (" a_Color" ,GL_FLOAT,0 ,3 );
11491149
@@ -1156,14 +1156,14 @@ class Basic_viewer : public CGAL::QGLViewer
11561156 ++bufn;
11571157 CGAL_assertion (bufn<NB_GL_BUFFERS);
11581158 buffers[bufn].bind ();
1159- buffers[bufn].allocate (positions.data (), positions.size ()*sizeof (float ));
1159+ buffers[bufn].allocate (positions.data (), static_cast < int >( positions.size ()*sizeof (float ) ));
11601160 rendering_program_p_l.enableAttributeArray (" a_Pos" );
11611161 rendering_program_p_l.setAttributeBuffer (" a_Pos" ,GL_FLOAT,0 ,3 );
11621162
11631163 ++bufn;
11641164 CGAL_assertion (bufn<NB_GL_BUFFERS);
11651165 buffers[bufn].bind ();
1166- buffers[bufn].allocate (colors.data (), colors.size ()*sizeof (float ));
1166+ buffers[bufn].allocate (colors.data (), static_cast < int >( colors.size ()*sizeof (float ) ));
11671167 rendering_program_p_l.enableAttributeArray (" a_Color" );
11681168 rendering_program_p_l.setAttributeBuffer (" a_Color" ,GL_FLOAT,0 ,3 );
11691169
@@ -1176,14 +1176,14 @@ class Basic_viewer : public CGAL::QGLViewer
11761176 ++bufn;
11771177 CGAL_assertion (bufn<NB_GL_BUFFERS);
11781178 buffers[bufn].bind ();
1179- buffers[bufn].allocate (positions.data (), positions.size ()*sizeof (float ));
1179+ buffers[bufn].allocate (positions.data (), static_cast < int >( positions.size ()*sizeof (float ) ));
11801180 rendering_program_p_l.enableAttributeArray (" a_Pos" );
11811181 rendering_program_p_l.setAttributeBuffer (" a_Pos" ,GL_FLOAT,0 ,3 );
11821182
11831183 ++bufn;
11841184 CGAL_assertion (bufn<NB_GL_BUFFERS);
11851185 buffers[bufn].bind ();
1186- buffers[bufn].allocate (colors.data (), colors.size ()*sizeof (float ));
1186+ buffers[bufn].allocate (colors.data (), static_cast < int >( colors.size ()*sizeof (float ) ));
11871187 rendering_program_p_l.enableAttributeArray (" a_Color" );
11881188 rendering_program_p_l.setAttributeBuffer (" a_Color" ,GL_FLOAT,0 ,3 );
11891189
@@ -1196,14 +1196,14 @@ class Basic_viewer : public CGAL::QGLViewer
11961196 ++bufn;
11971197 CGAL_assertion (bufn<NB_GL_BUFFERS);
11981198 buffers[bufn].bind ();
1199- buffers[bufn].allocate (positions.data (), positions.size ()*sizeof (float ));
1199+ buffers[bufn].allocate (positions.data (), static_cast < int >( positions.size ()*sizeof (float ) ));
12001200 rendering_program_p_l.enableAttributeArray (" a_Pos" );
12011201 rendering_program_p_l.setAttributeBuffer (" a_Pos" ,GL_FLOAT,0 ,3 );
12021202
12031203 ++bufn;
12041204 CGAL_assertion (bufn<NB_GL_BUFFERS);
12051205 buffers[bufn].bind ();
1206- buffers[bufn].allocate (colors.data (), colors.size ()*sizeof (float ));
1206+ buffers[bufn].allocate (colors.data (), static_cast < int >( colors.size ()*sizeof (float ) ));
12071207 rendering_program_p_l.enableAttributeArray (" a_Color" );
12081208 rendering_program_p_l.setAttributeBuffer (" a_Color" ,GL_FLOAT,0 ,3 );
12091209
@@ -1219,21 +1219,21 @@ class Basic_viewer : public CGAL::QGLViewer
12191219 ++bufn;
12201220 CGAL_assertion (bufn<NB_GL_BUFFERS);
12211221 buffers[bufn].bind ();
1222- buffers[bufn].allocate (positions.data (), positions.size ()*sizeof (float ));
1222+ buffers[bufn].allocate (positions.data (), static_cast < int >( positions.size ()*sizeof (float ) ));
12231223 rendering_program_face.enableAttributeArray (" a_Pos" );
12241224 rendering_program_face.setAttributeBuffer (" a_Pos" ,GL_FLOAT,0 ,3 );
12251225
12261226 ++bufn;
12271227 CGAL_assertion (bufn<NB_GL_BUFFERS);
12281228 buffers[bufn].bind ();
1229- buffers[bufn].allocate (normals.data (), normals.size ()*sizeof (float ));
1229+ buffers[bufn].allocate (normals.data (), static_cast < int >( normals.size ()*sizeof (float ) ));
12301230 rendering_program_face.enableAttributeArray (" a_Normal" );
12311231 rendering_program_face.setAttributeBuffer (" a_Normal" ,GL_FLOAT,0 ,3 );
12321232
12331233 ++bufn;
12341234 CGAL_assertion (bufn<NB_GL_BUFFERS);
12351235 buffers[bufn].bind ();
1236- buffers[bufn].allocate (colors.data (), colors.size ()*sizeof (float ));
1236+ buffers[bufn].allocate (colors.data (), static_cast < int >( colors.size ()*sizeof (float ) ));
12371237 rendering_program_face.enableAttributeArray (" a_Color" );
12381238 rendering_program_face.setAttributeBuffer (" a_Color" ,GL_FLOAT,0 ,3 );
12391239
0 commit comments