Index: experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp |
diff --git a/experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp b/experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp |
index 2f0c18cb60a14dbc84bfd74929bf58c01d306aa0..66f308047c6a86590f0c9a79a3a9ba866f0ef097 100644 |
--- a/experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp |
+++ b/experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp |
@@ -189,7 +189,7 @@ void SkPdfNativeDoc::loadWithoutXRef() { |
reset(fObjects.append()); |
} |
- fObjects[id].fOffset = current - fFileContent; |
+ fObjects[id].fOffset = SkToInt(current - fFileContent); |
SkPdfNativeObject* obj = fAllocator->allocObject(); |
current = nextObject(current, end, obj, fAllocator, this); |