Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit a9d668e

Browse files
committed
Add Divisor cast
1 parent 09bb019 commit a9d668e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impeller/scene/importer/vertices_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void WriteScalars(void* destination,
5555
size_t component_count) {
5656
for (size_t i = 0; i < component_count; i++) {
5757
const SourceType* s = reinterpret_cast<const SourceType*>(source) + i;
58-
Scalar v = static_cast<Scalar>(*s) / Divisor;
58+
Scalar v = static_cast<Scalar>(*s) / static_cast<Scalar>(Divisor);
5959
Scalar* dest = reinterpret_cast<Scalar*>(destination) + i;
6060
*dest = v;
6161
}

0 commit comments

Comments
 (0)