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

Unified Diff: bin/fdutils_macos.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
Index: bin/fdutils_macos.cc
===================================================================
--- bin/fdutils_macos.cc (revision 3211)
+++ bin/fdutils_macos.cc (working copy)
@@ -39,12 +39,12 @@
intptr_t FDUtils::AvailableBytes(intptr_t fd) {
Søren Gjesse 2012/01/12 07:32:47 I have it on my TODO list to change all these uses
siva 2012/01/12 19:30:50 Ok. On 2012/01/12 07:32:47, Søren Gjesse wrote:
- size_t available;
+ int32_t available;
Søren Gjesse 2012/01/12 07:32:47 Shouldn't we just use int here as that is what is
siva 2012/01/12 19:30:50 I would prefer int32_t as opposed to int as it mak
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 | « bin/fdutils_linux.cc ('k') | bin/socket_stream.dart » ('j') | bin/socket_stream.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698