Index: src/gpu/gl/GrGLPathRendering.cpp |
diff --git a/src/gpu/gl/GrGLPathRendering.cpp b/src/gpu/gl/GrGLPathRendering.cpp |
index 5e0889562d50f672801694e81e647356f571d916..44b86818e94660d91d5ef5cd39a1762c6b195e1e 100644 |
--- a/src/gpu/gl/GrGLPathRendering.cpp |
+++ b/src/gpu/gl/GrGLPathRendering.cpp |
@@ -136,7 +136,7 @@ GrPathRange* GrGLPathRendering::createGlyphs(const SkTypeface* typeface, |
const void* fontData = fontStream->getMemoryBase(); |
if (NULL == fontData) { |
// TODO: Find a more efficient way to pass the font data (e.g. open file descriptor). |
- fontTempBuffer.reset(SkToU32(fontDataLength)); |
+ fontTempBuffer.reset(SkToInt(fontDataLength)); |
fontStream->read(&fontTempBuffer.front(), fontDataLength); |
fontData = &fontTempBuffer.front(); |
} |