Skip to content

Commit

Permalink
Merge pull request #232 from zeux/intnof
Browse files Browse the repository at this point in the history
Remove float->int casts from read_integer/read_index
  • Loading branch information
jkuhlmann authored Oct 25, 2023
2 parents 94fdced + 35d6052 commit fd3a618
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cgltf.h
Original file line number Diff line number Diff line change
Expand Up @@ -2150,8 +2150,6 @@ static cgltf_ssize cgltf_component_read_integer(const void* in, cgltf_component_
return *((const uint16_t*) in);
case cgltf_component_type_r_32u:
return *((const uint32_t*) in);
case cgltf_component_type_r_32f:
return (cgltf_ssize)*((const float*) in);
case cgltf_component_type_r_8:
return *((const int8_t*) in);
case cgltf_component_type_r_8u:
Expand All @@ -2169,8 +2167,6 @@ static cgltf_size cgltf_component_read_index(const void* in, cgltf_component_typ
return *((const uint16_t*) in);
case cgltf_component_type_r_32u:
return *((const uint32_t*) in);
case cgltf_component_type_r_32f:
return (cgltf_size)((cgltf_ssize)*((const float*) in));
case cgltf_component_type_r_8u:
return *((const uint8_t*) in);
default:
Expand Down

0 comments on commit fd3a618

Please sign in to comment.