Some methods should use uint instead of int.

At least OpenGL docs says so. I think these methods are not the only
ones where int is using instead of uint.