From 6c407a95718e2c5d46d2e059ecf0e6889dcd6a3a Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 22 Dec 2017 22:03:54 -0500 Subject: [PATCH] Fix puzzling warning. --- src/LaTeX.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp index f692a2ab5b..79824217b8 100644 --- a/src/LaTeX.cpp +++ b/src/LaTeX.cpp @@ -416,10 +416,11 @@ int LaTeX::run(TeXErrors & terr) } // I am not pretty sure if need this twice. + // MSVC complains that bool |= int is unsafe. Not sure why. if (head.haschanged(nlofile)) - rerun |= runMakeIndexNomencl(file, ".nlo", ".nls"); + rerun |= (runMakeIndexNomencl(file, ".nlo", ".nls") != 0); if (head.haschanged(glofile)) - rerun |= runMakeIndexNomencl(file, ".glo", ".gls"); + rerun |= (runMakeIndexNomencl(file, ".glo", ".gls") != 0); // 5 // we will only run latex more if the log file asks for it.