aboutsummaryrefslogtreecommitdiff
path: root/tests/fdstream
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-05-12 00:17:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-05-12 00:17:02 +0300
commitba7eae2155cf26d9ed584f535975ed67389fa8a6 (patch)
tree975e0da4f913b3ad8a24805df72b2dbef3299dd0 /tests/fdstream
parent04669106fb41d787e0686023dcce640fbe59865d (diff)
Fix the 'possible loss of data' 32-bit VC warning
Diffstat (limited to 'tests/fdstream')
-rw-r--r--tests/fdstream/driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fdstream/driver.cxx b/tests/fdstream/driver.cxx
index 4a85526..58b7012 100644
--- a/tests/fdstream/driver.cxx
+++ b/tests/fdstream/driver.cxx
@@ -481,7 +481,7 @@ main (int argc, const char* argv[])
assert (nd.first == 1 && nd.second == 0 && rds[0].ready);
for (streamsize n; (n = is.readsome (buf, sizeof (buf))) != 0; )
- r.append (buf, n);
+ r.append (buf, static_cast<size_t> (n));
}
is.close ();