Chromium Code Reviews| 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); |
| } |