diff options
-rw-r--r-- | src/utils/SkMatrix44.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/SkMatrix44.cpp b/src/utils/SkMatrix44.cpp index f4b6aa4804..a7133ec1a7 100644 --- a/src/utils/SkMatrix44.cpp +++ b/src/utils/SkMatrix44.cpp @@ -383,11 +383,11 @@ void SkMatrix44::setConcat(const SkMatrix44& a, const SkMatrix44& b) { } else { for (int j = 0; j < 4; j++) { for (int i = 0; i < 4; i++) { - SkMScalar value = 0; + double value = 0; for (int k = 0; k < 4; k++) { - value += a.fMat[k][i] * b.fMat[j][k]; + value += SkMScalarToDouble(a.fMat[k][i]) * b.fMat[j][k]; } - *result++ = value; + *result++ = SkDoubleToMScalar(value); } } } |