From d912747a68c38baa1d19e07067d8c691f29f8198 Mon Sep 17 00:00:00 2001 From: John Fultz Date: Tue, 21 Jul 2015 10:18:57 -0500 Subject: Visual Studio build maintenance. * Fix compiler warnings * Add Visual Studio 2013 solution * Tweak .pro files * Most importantly, rename main 'quackle' project to 'libquackle' to avoid solution-level name conflict. This only affects the VS build. --- generator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'generator.cpp') diff --git a/generator.cpp b/generator.cpp index 5958b72..2bfc199 100644 --- a/generator.cpp +++ b/generator.cpp @@ -444,8 +444,8 @@ void Generator::readFromDawg(int index, unsigned int &p, Letter &letter, bool &t p = (QUACKLE_LEXICON_PARAMETERS->dawgAt(index) << 16) + (QUACKLE_LEXICON_PARAMETERS->dawgAt(index + 1) << 8) + (QUACKLE_LEXICON_PARAMETERS->dawgAt(index + 2)); letter = QUACKLE_LEXICON_PARAMETERS->dawgAt(index + 3); - t = (letter & 32); - lastchild = (letter & 64); + t = (letter & 32) != 0; + lastchild = (letter & 64) != 0; british = !(letter & 128); letter = (letter & 31) + QUACKLE_FIRST_LETTER; -- cgit v1.2.3