summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-06-09 11:40:41 (GMT)
committerBrad King <brad.king@kitware.com>2005-06-09 11:40:41 (GMT)
commitc7a61b9802a636f206b6ac4880297c961145ca1f (patch)
tree6008e6886952fd7087476a2a64c9d1fcdc95dab2 /Source
parent1046ba0f08555c415e1f55a56bd79c7d5681aaf2 (diff)
downloadCMake-c7a61b9802a636f206b6ac4880297c961145ca1f.zip
CMake-c7a61b9802a636f206b6ac4880297c961145ca1f.tar.gz
CMake-c7a61b9802a636f206b6ac4880297c961145ca1f.tar.bz2
COMP: Fixed conversion warnings.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/RegularExpression.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/kwsys/RegularExpression.cxx b/Source/kwsys/RegularExpression.cxx
index bb9e9b1..07c183a 100644
--- a/Source/kwsys/RegularExpression.cxx
+++ b/Source/kwsys/RegularExpression.cxx
@@ -426,7 +426,7 @@ static char* reg (int paren, int *flagp) {
}
parno = regnpar;
regnpar++;
- ret = regnode(OPEN + parno);
+ ret = regnode(static_cast<char>(OPEN + parno));
}
else
ret = 0;
@@ -454,7 +454,7 @@ static char* reg (int paren, int *flagp) {
}
// Make a closing node, and hook it on the end.
- ender = regnode((paren) ? CLOSE + parno : END);
+ ender = regnode(static_cast<char>((paren) ? CLOSE + parno : END));
regtail(ret, ender);
// Hook the tails of the branches to the closing node.
@@ -638,7 +638,7 @@ static char* regatom (int *flagp) {
return 0;
}
for (; rxpclass <= rxpclassend; rxpclass++)
- regc(rxpclass);
+ regc(static_cast<unsigned char>(rxpclass));
regparse++;
}
}
@@ -801,8 +801,8 @@ static void regtail (char* p, const char* val) {
offset = int(scan - val);
else
offset = int(val - scan);
- *(scan + 1) = (offset >> 8) & 0377;
- *(scan + 2) = offset & 0377;
+ *(scan + 1) = static_cast<char>((offset >> 8) & 0377);
+ *(scan + 2) = static_cast<char>(offset & 0377);
}