[PPL-devel] [GIT] ppl/ppl(master): Fixed plain char vs. numeric unsafe mixing.
Enea Zaffanella
zaffanella at cs.unipr.it
Thu Nov 3 09:38:18 CET 2011
Module: ppl/ppl
Branch: master
Commit: 5e7acd07fc98bbc595c40e5705656010ac54d614
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=5e7acd07fc98bbc595c40e5705656010ac54d614
Author: Enea Zaffanella <zaffanella at cs.unipr.it>
Date: Thu Nov 3 09:36:07 2011 +0100
Fixed plain char vs. numeric unsafe mixing.
Detected by ECLAIR service utypflag.
---
src/C_Integer.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/C_Integer.hh b/src/C_Integer.hh
index f0cdbee..84c03e6 100644
--- a/src/C_Integer.hh
+++ b/src/C_Integer.hh
@@ -78,8 +78,8 @@ struct C_Integer<char> : public True {
#else
typedef signed char other_type;
#endif
- static const char min = CHAR_MIN;
- static const char max = CHAR_MAX;
+ static const char min = static_cast<char>(CHAR_MIN);
+ static const char max = static_cast<char>(CHAR_MAX);
};
template <>
More information about the PPL-devel
mailing list