Index: src/core/SkMipMap.cpp |
diff --git a/src/core/SkMipMap.cpp b/src/core/SkMipMap.cpp |
index 4811c9e07394f9f6cb478da50014ca49d36b53c5..cb9cc85a9874834390ec419b0023298a2302583b 100644 |
--- a/src/core/SkMipMap.cpp |
+++ b/src/core/SkMipMap.cpp |
@@ -88,7 +88,9 @@ struct ColorTypeFilter_F16 { |
return SkHalfToFloat_finite(x); |
} |
static uint64_t Compact(const Sk4f& x) { |
- return SkFloatToHalf_finite(x); |
+ uint64_t r; |
+ SkFloatToHalf_finite(x).store(&r); |
+ return r; |
} |
}; |