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

Unified Diff: runtime/bin/socket_win.cc

Issue 317773002: Fix Win64 build of Dart VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add fix for http://dartbug.com/19213 Created 6 years, 6 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: runtime/bin/socket_win.cc
diff --git a/runtime/bin/socket_win.cc b/runtime/bin/socket_win.cc
index 5ec7f1fa7c5c2c5052ef59e2613c3717914534d8..7835d7b68ca16284971079e41efb69804931fc74 100644
--- a/runtime/bin/socket_win.cc
+++ b/runtime/bin/socket_win.cc
@@ -70,7 +70,7 @@ intptr_t Socket::Available(intptr_t fd) {
}
-intptr_t Socket::Read(intptr_t fd, void* buffer, intptr_t num_bytes) {
+int Socket::Read(intptr_t fd, void* buffer, intptr_t num_bytes) {
srdjan 2014/06/05 17:00:46 Why is this necessary?
siva 2014/06/05 17:21:18 Not sure I understand the divergence, num_bytes is
Ivan Posva 2014/06/05 17:42:11 I see why this is necessary, but the real problem
Vyacheslav Egorov (Google) 2014/06/05 18:05:55 Thanks. I will revert my changes to this file. Ha
Ivan Posva 2014/06/05 18:13:38 Please file a bug against IO and check with Anders
Handle* handle = reinterpret_cast<Handle*>(fd);
return handle->Read(buffer, num_bytes);
}
@@ -84,7 +84,7 @@ int Socket::RecvFrom(intptr_t fd, void* buffer, intptr_t num_bytes,
}
-intptr_t Socket::Write(intptr_t fd, const void* buffer, intptr_t num_bytes) {
+int Socket::Write(intptr_t fd, const void* buffer, intptr_t num_bytes) {
Handle* handle = reinterpret_cast<Handle*>(fd);
return handle->Write(buffer, num_bytes);
}

Powered by Google App Engine
This is Rietveld 408576698