diff --git a/OpenNL/include/CGAL/OpenNL/linear_solver.h b/OpenNL/include/CGAL/OpenNL/linear_solver.h index fa83ebdc05f..960585160a0 100644 --- a/OpenNL/include/CGAL/OpenNL/linear_solver.h +++ b/OpenNL/include/CGAL/OpenNL/linear_solver.h @@ -336,28 +336,28 @@ public: void end_row() { if(least_squares_) { - unsigned int nf = af_.size() ; - unsigned int nl = al_.size() ; - for(unsigned int i=0; iadd_coef(if_[i], if_[j], af_[i] * af_[j]) ; } } CoeffType S = - bk_ ; - for(unsigned int j=0; jadd_coef(current_row_, if_[i], af_[i]) ; } (*b_)[current_row_] = bk_ ; - for(unsigned int i=0; i(n_Axis.size() * sizeof(float))); rendering_program.enableAttributeArray("normal"); rendering_program.setAttributeBuffer("normal",GL_FLOAT,0,3); buffers[1].release(); buffers[2].bind(); - buffers[2].allocate(c_Axis.data(), c_Axis.size() * sizeof(float)); + buffers[2].allocate(c_Axis.data(), static_cast(c_Axis.size() * sizeof(float))); rendering_program.enableAttributeArray("colors"); rendering_program.setAttributeBuffer("colors",GL_FLOAT,0,3); buffers[2].release(); diff --git a/Polyhedron/demo/Polyhedron/Viewer.h b/Polyhedron/demo/Polyhedron/Viewer.h index 4841db07f29..f74c05335c1 100644 --- a/Polyhedron/demo/Polyhedron/Viewer.h +++ b/Polyhedron/demo/Polyhedron/Viewer.h @@ -67,7 +67,7 @@ protected: void keyPressEvent(QKeyEvent*); void pickMatrix(GLdouble x, GLdouble y, GLdouble width, GLdouble height, GLint viewport[4]); - void makeArrow(float R, int prec, qglviewer::Vec from, qglviewer::Vec to, qglviewer::Vec color, AxisData &data); + void makeArrow(double R, int prec, qglviewer::Vec from, qglviewer::Vec to, qglviewer::Vec color, AxisData &data); void resizeGL(int w, int h);