Index: src/pdf/SkPDFTypes.cpp |
diff --git a/src/pdf/SkPDFTypes.cpp b/src/pdf/SkPDFTypes.cpp |
index aafad79c4464e93d48d2b391298ea7ea263608b6..e3cc90c1de27e711a702e95f8982f42b562d1f76 100644 |
--- a/src/pdf/SkPDFTypes.cpp |
+++ b/src/pdf/SkPDFTypes.cpp |
@@ -142,7 +142,7 @@ void SkPDFScalar::Append(SkScalar value, SkWStream* stream) { |
#if !defined(SK_ALLOW_LARGE_PDF_SCALARS) |
if (value > 32767 || value < -32767) { |
- stream->writeDecAsText(SkScalarRound(value)); |
+ stream->writeDecAsText(SkScalarRoundToInt(value)); |
return; |
} |