From b67605814738d17484e508d037b8b1f09c27cab6 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Sun, 21 Jul 2019 02:06:00 -0500 Subject: Visual C++ compiler warning fixes. Mostly signed/unsigned/size_t mismatches, except for one case treating a bool as an integer. --- quackleio/dawgfactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'quackleio/dawgfactory.cpp') diff --git a/quackleio/dawgfactory.cpp b/quackleio/dawgfactory.cpp index 54d753b..60c797d 100644 --- a/quackleio/dawgfactory.cpp +++ b/quackleio/dawgfactory.cpp @@ -218,7 +218,7 @@ void DawgFactory::Node::print(vector< Node* > &nodelist) if (!deleted) { //cout << " Setting pointer to " << nodelist.size() << " before I push_back the children." << endl; - pointer = nodelist.size(); + pointer = (int)nodelist.size(); } else { @@ -276,7 +276,7 @@ bool DawgFactory::Node::pushWord(const Quackle::LetterString &word, bool inSmall n.pointer = 0; n.lastchild = false; children.push_back(n); - index = children.size() - 1; + index = (int)children.size() - 1; } added = children[index].pushWord(rest, inSmaller, pb); -- cgit v1.2.3