We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4178e52 commit e653520Copy full SHA for e653520
src/rt/rust_uv.cpp
@@ -276,7 +276,15 @@ static void write_complete(request *req, int status) {
276
extern "C" CDECL void aio_writedata(rust_task *task, socket_data *data,
277
char *buf, size_t size, rust_chan *chan) {
278
LOG_UPCALL_ENTRY(task);
279
+
280
+ // uv_buf_t is defined backwards on win32...
281
+ // maybe an indication we shouldn't be building directly?
282
+#if defined(__WIN32__)
283
+ uv_buf_t buffer = { size, buf };
284
+#else
285
uv_buf_t buffer = { buf, size };
286
+#endif
287
288
request *req = new (data->task, "write request")
289
request(data, chan, write_complete);
290
if (!req) {
0 commit comments