Browse Source

Merge pull request #375 from jmespadero/minorWarnings

Solve minor warning in Viewer

Former-commit-id: cd1ae8729188d853dd8c66eb483fced656694e3a
Alec Jacobson 8 năm trước cách đây
mục cha
commit
83ba3156e1
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;