Hello Heinz, would you mind testing the attached patch.
-- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : [email protected] PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>From 2dc2acc6e7de31329f99a66cc7daf0d4c23bb84a Mon Sep 17 00:00:00 2001 From: Sebastian Huber <[email protected]> Date: Tue, 10 Sep 2019 12:10:23 +0200 Subject: [PATCH] record: Include missing header file Update #3665. --- trace/record/record-client-base.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trace/record/record-client-base.cc b/trace/record/record-client-base.cc index ac88eab..8fe6edb 100644 --- a/trace/record/record-client-base.cc +++ b/trace/record/record-client-base.cc @@ -40,6 +40,7 @@ #include <fcntl.h> #include <sys/stat.h> +#include <algorithm> #include <cassert> #include <cstring> @@ -108,7 +109,7 @@ void Client::Run() { while (stop_ == 0 && todo > 0) { int buf[8192]; - size_t m = std::min(sizeof(buf), todo); + size_t m = std::min(static_cast<uint64_t>(sizeof(buf)), todo); ssize_t n = input_.Read(buf, m); if (n <= 0) { break; -- 2.16.4
_______________________________________________ users mailing list [email protected] http://lists.rtems.org/mailman/listinfo/users
