From 1468528a6226111bfad400dec6d450b02893145c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 10 Jan 2021 15:21:00 +0100 Subject: [PATCH] Try to silence some more MSVC warnings --- src/map/IMG/nodfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/IMG/nodfile.cpp b/src/map/IMG/nodfile.cpp index 4e4501c7..9f4821ad 100644 --- a/src/map/IMG/nodfile.cpp +++ b/src/map/IMG/nodfile.cpp @@ -27,10 +27,10 @@ static bool adjDistInfo(BitStream1 &bs, bool extraBit, bool &eog) { quint32 data, cnt; - if (!bs.read(extraBit | 8, data)) + if (!bs.read((int)extraBit | 8, data)) return false; - data <<= !extraBit; + data <<= !(int)extraBit; eog |= (quint8)data & 1; data >>= 1; @@ -51,7 +51,7 @@ static bool adjNodeInfo(BitStream1 &bs, bool extraBit, NodeOffset &offset) if (!bs.read(9, data)) return false; - data <<= !extraBit; + data <<= !(int)extraBit; if (data & 1) { offset.ext = true;