aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-02 18:49:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-02 18:49:54 +0200
commitb8536c43eb2b2c092c5eaefc49f3f309e89b2e8e (patch)
tree44cb0bf343cf7f6d84cb2e551851ce902b0dbc73
parent1690169dcefcc6fe6249221c4c08cb371cc700fc (diff)
Fix application of unary minus to unsigned
-rw-r--r--libbutl/fdstream.cxx4
1 files 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<int> (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<int> (m)); // Note that pbump() accepts negatives.
return m < bn ? 0 : m - bn;
}