Clean up Visual Studio int to bool cast warnings.

This commit is contained in:
Jukka Jylänki 2014-12-19 10:27:34 -05:00
Родитель 4625299023
Коммит 812a76939c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -2687,7 +2687,7 @@ void registerizeHarder(Ref ast) {
IString name = node[1]->getIString();
if (asmData.isLocal(name)) {
nextBasicBlock->nodes.push_back(node);
nextBasicBlock->isexpr.push_back(bool(isInExpr));
nextBasicBlock->isexpr.push_back(isInExpr != 0);
if (nextBasicBlock->kill.count(name) == 0) {
nextBasicBlock->use[name] = 1;
}
@ -2702,7 +2702,7 @@ void registerizeHarder(Ref ast) {
IString name = node[2][1]->getIString();
if (asmData.isLocal(name)) {
nextBasicBlock->nodes.push_back(node);
nextBasicBlock->isexpr.push_back(bool(isInExpr));
nextBasicBlock->isexpr.push_back(isInExpr != 0);
nextBasicBlock->kill.insert(name);
}
};