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

Unified Diff: bin/fdutils_linux.cc

Issue 9194002: Fix failure (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « no previous file | bin/fdutils_macos.cc » ('j') | bin/fdutils_macos.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/fdutils_linux.cc
===================================================================
--- bin/fdutils_linux.cc (revision 3211)
+++ bin/fdutils_linux.cc (working copy)
@@ -39,12 +39,12 @@
intptr_t FDUtils::AvailableBytes(intptr_t fd) {
- size_t available;
+ int32_t available;
int result = TEMP_FAILURE_RETRY(ioctl(fd, FIONREAD, &available));
if (result < 0) {
return result;
}
- return available;
+ return static_cast<intptr_t>(available);
}
« no previous file with comments | « no previous file | bin/fdutils_macos.cc » ('j') | bin/fdutils_macos.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698