Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add Divisor cast
  • Loading branch information
bdero committed Dec 5, 2022
commit a9d668e5db4b95385cee1feab3f7474b85befeca
2 changes: 1 addition & 1 deletion impeller/scene/importer/vertices_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void WriteScalars(void* destination,
size_t component_count) {
for (size_t i = 0; i < component_count; i++) {
const SourceType* s = reinterpret_cast<const SourceType*>(source) + i;
Scalar v = static_cast<Scalar>(*s) / Divisor;
Scalar v = static_cast<Scalar>(*s) / static_cast<Scalar>(Divisor);
Scalar* dest = reinterpret_cast<Scalar*>(destination) + i;
*dest = v;
}
Expand Down