소스 검색

Merge pull request #375 from jmespadero/minorWarnings

Solve minor warning in Viewer

Former-commit-id: cd1ae8729188d853dd8c66eb483fced656694e3a
Alec Jacobson 8 년 전
부모
커밋
83ba3156e1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;