glGetAttribLocation should return unsigned int as that is what is expected in (for example) glEnableVertexAttribArray