From 8e932b966cc9ec682ea6bc8176e1b7c9d06fa548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 31 Aug 2017 15:32:44 +0200 Subject: [PATCH] Fixed msvc warning --- src/ozf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ozf.cpp b/src/ozf.cpp index 355755f7..87ba92af 100644 --- a/src/ozf.cpp +++ b/src/ozf.cpp @@ -137,7 +137,8 @@ bool OZF::readTileTable() return false; if (!readValue(tableOffset)) return false; - zooms = (_file.size() - tableOffset - sizeof(quint32)) / sizeof(quint32); + zooms = (int)((_file.size() - tableOffset - sizeof(quint32)) + / sizeof(quint32)); for (int i = 0; i < zooms - 2; i++) { if (!_file.seek(tableOffset + i * sizeof(quint32)))