X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=util.cpp;h=70c9af2dc0d91be4951db50e90f9c6d79e77ba36;hp=f1b838a2cecc12504bb4c4217a083136de750c60;hb=fe785e6f62ab58ef05972850d9275005794505b7;hpb=96a1cff51a8b7dc45ebe725e0d0685eecce31331 diff --git a/util.cpp b/util.cpp index f1b838a..70c9af2 100644 --- a/util.cpp +++ b/util.cpp @@ -69,7 +69,7 @@ GLuint compile_shader(const std::string &shader_src, GLenum type) { GLuint obj = glCreateShader(type); const GLchar* source[] = { shader_src.data() }; - const GLint length[] = { shader_src.size() }; + const GLint length[] = { (GLint)shader_src.size() }; glShaderSource(obj, 1, source, length); glCompileShader(obj);