diff --git a/opensubdiv/far/patchTableFactory.cpp b/opensubdiv/far/patchTableFactory.cpp index ad7bbf26..47d99ee9 100644 --- a/opensubdiv/far/patchTableFactory.cpp +++ b/opensubdiv/far/patchTableFactory.cpp @@ -1276,7 +1276,7 @@ PatchTableBuilder::populatePatches() { patchParam.GetU(), patchParam.GetV(), patchParam.GetDepth(), patchParam.NonQuadRoot(), - fvcPatchInfo.paramBoundaryMask, + (unsigned short) fvcPatchInfo.paramBoundaryMask, patchParam.GetTransition(), fvcPatchInfo.isRegular); } diff --git a/opensubdiv/osd/cpuGLVertexBuffer.cpp b/opensubdiv/osd/cpuGLVertexBuffer.cpp index 8b4afab5..c504072a 100644 --- a/opensubdiv/osd/cpuGLVertexBuffer.cpp +++ b/opensubdiv/osd/cpuGLVertexBuffer.cpp @@ -95,7 +95,7 @@ CpuGLVertexBuffer::BindVBO(void * /*deviceContext*/) { if (! _dataDirty) return _vbo; - int size = GetNumElements() * GetNumVertices() * sizeof(float); + int size = GetNumElements() * GetNumVertices() * (int) sizeof(float); if (! _vbo) { glGenBuffers(1, &_vbo); diff --git a/opensubdiv/osd/glVertexBuffer.cpp b/opensubdiv/osd/glVertexBuffer.cpp index 67bf9881..181b3a3c 100644 --- a/opensubdiv/osd/glVertexBuffer.cpp +++ b/opensubdiv/osd/glVertexBuffer.cpp @@ -59,7 +59,7 @@ void GLVertexBuffer::UpdateData(const float *src, int startVertex, int numVertices, void * /*deviceContext*/) { - int size = numVertices * _numElements * sizeof(float); + int size = numVertices * _numElements * (int) sizeof(float); #if defined(GL_ARB_direct_state_access) if (OSD_OPENGL_HAS(ARB_direct_state_access)) { glNamedBufferSubData(_vbo, @@ -96,7 +96,7 @@ GLVertexBuffer::BindVBO(void * /*deviceContext*/) { bool GLVertexBuffer::allocate() { - int size = _numElements * _numVertices * sizeof(float); + int size = _numElements * _numVertices * (int) sizeof(float); #if defined(GL_ARB_direct_state_access)