From bc98d3dd04e1fe6c71751b38162024491e3cea70 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 2 Oct 2012 12:12:43 +0200 Subject: [PATCH] Fix a C++11 compatibility issue. --- util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2