From b8536c43eb2b2c092c5eaefc49f3f309e89b2e8e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 2 May 2017 18:49:54 +0200 Subject: Fix application of unary minus to unsigned --- libbutl/fdstream.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbutl/fdstream.cxx b/libbutl/fdstream.cxx index 77e48e0..946118d 100644 --- a/libbutl/fdstream.cxx +++ b/libbutl/fdstream.cxx @@ -353,7 +353,7 @@ namespace butl if (m < bn) { memmove (pbase (), pbase () + m, bn - m); - pbump (-m); // Note that pbump() accepts negatives. + pbump (-static_cast (m)); // Note that pbump() accepts negatives. return 0; } @@ -396,7 +396,7 @@ namespace butl if (m < wn) { memmove (pbase (), pbase () + m, wn - m); - pbump (-m); // Note that pbump() accepts negatives. + pbump (-static_cast (m)); // Note that pbump() accepts negatives. return m < bn ? 0 : m - bn; } -- cgit v1.1