[opengm] 28/40: char to int
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 14 16:06:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository opengm.
commit 8a3e4c871f0f49952d0f13a62148c32b594451c6
Author: joergkappes <kappes at math.uni-heidelberg.de>
Date: Mon Dec 7 16:47:55 2015 +0100
char to int
---
include/opengm/utilities/tribool.hxx | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/opengm/utilities/tribool.hxx b/include/opengm/utilities/tribool.hxx
index 88ab669..30b4706 100644
--- a/include/opengm/utilities/tribool.hxx
+++ b/include/opengm/utilities/tribool.hxx
@@ -4,7 +4,7 @@
namespace opengm {
- /// Variable with three values (true=1, false=0, maybe=-1)
+ /// Variable with three values (true=1, false=0, maybe=-1 )
class Tribool
{
public:
@@ -32,7 +32,7 @@ namespace opengm {
void operator&=(Tribool::State state);
private:
- char value_;
+ int value_;
friend std::ostream& operator<<(std::ostream& out, const Tribool& t );
};
@@ -59,9 +59,9 @@ namespace opengm {
(
const T val
)
- : value_(static_cast<char>(val) == Tribool::Maybe
+ : value_(static_cast<int>(val) == Tribool::Maybe
? Tribool::Maybe
- : static_cast<char>(static_cast<bool>(val)))
+ : static_cast<int>(static_cast<bool>(val)))
{}
inline Tribool&
@@ -83,9 +83,9 @@ namespace opengm {
const T val
)
{
- static_cast<char>(val) == Tribool::Maybe
+ static_cast<int>(val) == Tribool::Maybe
? value_ = Tribool::Maybe
- : value_ = static_cast<char>(static_cast<bool>(val));
+ : value_ = static_cast<int>(static_cast<bool>(val));
return *this;
}
@@ -95,7 +95,7 @@ namespace opengm {
Tribool::State val
)
{
- value_ = static_cast<char>(val);
+ value_ = static_cast<int>(val);
return *this;
}
@@ -116,7 +116,7 @@ namespace opengm {
T a
) const
{
- return static_cast<char>(a) == value_;
+ return static_cast<int>(a) == value_;
}
inline bool
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opengm.git
More information about the debian-science-commits
mailing list