aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/private/SkTFitsIn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/private/SkTFitsIn.h b/include/private/SkTFitsIn.h
index a889807360..09fa3449aa 100644
--- a/include/private/SkTFitsIn.h
+++ b/include/private/SkTFitsIn.h
@@ -204,7 +204,7 @@ template <typename D, typename S> constexpr inline bool SkTFitsIn(S s) {
using RealS = typename sktfitsin::Private::underlying_type<S>::type;
using RealD = typename sktfitsin::Private::underlying_type<D>::type;
- return sktfitsin::Private::SkTFitsIn<RealD, RealS>::type::fits(s);
+ return sktfitsin::Private::SkTFitsIn<RealD, RealS>::type::fits(static_cast<RealS>(s));
}
#endif