From ba7eae2155cf26d9ed584f535975ed67389fa8a6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sun, 12 May 2019 00:17:02 +0300 Subject: Fix the 'possible loss of data' 32-bit VC warning --- tests/fdstream/driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/fdstream/driver.cxx') 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 (n)); } is.close (); -- cgit v1.1