aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}