From 3b276882e0efc91cfabc1631e913a72dfcba656f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 3 Oct 2024 07:51:53 +0200 Subject: [PATCH] Code cleanup --- src/map/IMG/jls.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/IMG/jls.h b/src/map/IMG/jls.h index 89d5b008..aa37fb48 100644 --- a/src/map/IMG/jls.h +++ b/src/map/IMG/jls.h @@ -25,7 +25,7 @@ private: { if (!_file->readVUInt32SW(_hdl, 4, _value)) return false; - _shift = (quint8)-8; + _shift = -8; return true; } @@ -36,7 +36,7 @@ private: _value <<= bits; _shift += bits; - while (-1 < (qint8)_shift) { + while (_shift >= 0) { if (!_file->readByte(_hdl, &data)) return false; @@ -53,7 +53,7 @@ private: const SubFile *_file; SubFile::Handle &_hdl; quint32 _value; - quint8 _shift; + qint8 _shift; }; bool readLine(BitStream &bs);