From: Steinar H. Gunderson Date: Tue, 2 Oct 2012 10:12:43 +0000 (+0200) Subject: Fix a C++11 compatibility issue. X-Git-Tag: 1.0~433 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=bc98d3dd04e1fe6c71751b38162024491e3cea70;p=movit Fix a C++11 compatibility issue. --- 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);