Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2247)

Unified Diff: core/fxge/ge/cfx_font.cpp

Issue 2430743003: in the attempt to fix 627393, changed IFX_FileRead's readBlock to return the length it reads
Patch Set: remove .tmp files Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/fxge/ge/cfx_font.cpp
diff --git a/core/fxge/ge/cfx_font.cpp b/core/fxge/ge/cfx_font.cpp
index ce77cbf66152640dd791adaaba3458fdbe785bc3..b8003e4d32ebf590c5cf83c74e768110663a48cb 100644
--- a/core/fxge/ge/cfx_font.cpp
+++ b/core/fxge/ge/cfx_font.cpp
@@ -39,7 +39,7 @@ unsigned long FTStreamRead(FXFT_Stream stream,
return 0;
IFX_FileRead* pFile = static_cast<IFX_FileRead*>(stream->descriptor.pointer);
- return pFile->ReadBlock(buffer, offset, count) ? count : 0;
+ return static_cast<unsigned long>(pFile->ReadBlock(buffer, offset, count));
}
void FTStreamClose(FXFT_Stream stream) {}

Powered by Google App Engine
This is Rietveld 408576698