From c1fe39fb726a54eb409af2394b4738e8e9a24d20 Mon Sep 17 00:00:00 2001 From: leozide Date: Thu, 27 Jul 2017 12:40:52 -0700 Subject: [PATCH] Fixed compiler warning. --- common/lc_library.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lc_library.cpp b/common/lc_library.cpp index fac0cef8..c46efb66 100644 --- a/common/lc_library.cpp +++ b/common/lc_library.cpp @@ -870,7 +870,7 @@ bool lcPiecesLibrary::LoadCacheIndex(const QString& FileName) if (!ReadCacheFile(FileName, IndexFile)) return false; - qint32 NumFiles; + quint32 NumFiles; if (IndexFile.ReadBuffer((char*)&NumFiles, sizeof(NumFiles)) == 0 || NumFiles != mPieces.size()) return false; @@ -896,7 +896,7 @@ bool lcPiecesLibrary::SaveCacheIndex(const QString& FileName) { lcMemFile IndexFile; - qint32 NumFiles = mPieces.size(); + quint32 NumFiles = mPieces.size(); if (IndexFile.WriteBuffer((char*)&NumFiles, sizeof(NumFiles)) == 0) return false;