Explorar el Código

Merge pull request #375 from jmespadero/minorWarnings

Solve minor warning in Viewer

Former-commit-id: cd1ae8729188d853dd8c66eb483fced656694e3a
Alec Jacobson hace 8 años
padre
commit
83ba3156e1
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      include/igl/viewer/ViewerCore.cpp

+ 2 - 2
include/igl/viewer/ViewerCore.cpp

@@ -383,8 +383,8 @@ IGL_INLINE void igl::viewer::ViewerCore::draw_buffer(ViewerData& data,
   assert(R.rows() == G.rows() && G.rows() == B.rows() && B.rows() == A.rows());
   assert(R.cols() == G.cols() && G.cols() == B.cols() && B.cols() == A.cols());
 
-  int x = R.rows();
-  int y = R.cols();
+  unsigned x = R.rows();
+  unsigned y = R.cols();
 
   // Create frame buffer
   GLuint frameBuffer;