1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

Update repository for Visual Studio 2015 build

This commit is contained in:
bel2125
2016-03-26 20:07:45 +01:00
parent 7534f88cdf
commit 3eb145e58c
19 changed files with 75 additions and 127 deletions

View File

@@ -171,11 +171,11 @@ class FooHandler : public CivetHandler
if (rlen > sizeof(buf)) {
rlen = sizeof(buf);
}
rlen = mg_read(conn, buf, rlen);
rlen = mg_read(conn, buf, (size_t)rlen);
if (rlen <= 0) {
break;
}
wlen = mg_write(conn, buf, rlen);
wlen = mg_write(conn, buf, (size_t)rlen);
if (rlen != rlen) {
break;
}