[PPL-devel] [GIT] ppl/ppl(master): Avoid implicit cast narrowing a signed integer value .
Enea Zaffanella
zaffanella at cs.unipr.it
Thu Mar 1 22:36:59 CET 2012
Module: ppl/ppl
Branch: master
Commit: b6c3449ce47087c1e3957d2e37f717f5239c9796
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=b6c3449ce47087c1e3957d2e37f717f5239c9796
Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date: Thu Mar 1 22:23:29 2012 +0100
Avoid implicit cast narrowing a signed integer value.
Detected by ECLAIR service utypflag.
---
src/Row_Flags.cc | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/Row_Flags.cc b/src/Row_Flags.cc
index cb4d758..1d5a882 100644
--- a/src/Row_Flags.cc
+++ b/src/Row_Flags.cc
@@ -33,8 +33,7 @@ PPL::Row_Flags::ascii_dump(std::ostream& s) const {
s << "0x";
std::ios::fmtflags old_flags = s.setf(std::ios::hex,
std::ios::basefield);
- const std::streamsize new_sz
- = static_cast<std::streamsize>(2 * sizeof(Row_Flags::base_type));
+ const int new_sz = 2 * static_cast<int>(sizeof(Row_Flags::base_type));
s << std::setw(new_sz) << std::setfill('0') << bits;
s.flags(old_flags);
}
More information about the PPL-devel
mailing list