Cleanup: replace C-style casts with functional casts for numeric types

This commit is contained in:
2022-09-25 18:33:28 +10:00
parent c7b247a118
commit f68cfd6bb0
310 changed files with 1541 additions and 1542 deletions

View File

@@ -295,7 +295,7 @@ GLShaderInterface::GLShaderInterface(GLuint program)
enabled_attr_mask_ |= (1 << input->location);
/* Used in `GPU_shader_get_attribute_info`. */
attr_types_[input->location] = (uint8_t)gpu_type_from_gl_type(type);
attr_types_[input->location] = uint8_t(gpu_type_from_gl_type(type));
}
/* Uniform Blocks */
@@ -457,7 +457,7 @@ GLShaderInterface::GLShaderInterface(GLuint program, const shader::ShaderCreateI
enabled_attr_mask_ |= (1 << input->location);
/* Used in `GPU_shader_get_attribute_info`. */
attr_types_[input->location] = (uint8_t)attr.type;
attr_types_[input->location] = uint8_t(attr.type);
}
input++;