summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-27 03:47:17 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-27 03:47:17 +0200
commit4eebbd313a182296ba561e2cdfebdebf473d0889 (patch)
tree2a6bd96d61f6d31b825fca9eb0c6d08e8ed5fa98 /src/gui
parent037248d338291529e0c044a80ca8345abe05dd2b (diff)
downloadmanaplus-4eebbd313a182296ba561e2cdfebdebf473d0889.tar.gz
manaplus-4eebbd313a182296ba561e2cdfebdebf473d0889.tar.bz2
manaplus-4eebbd313a182296ba561e2cdfebdebf473d0889.tar.xz
manaplus-4eebbd313a182296ba561e2cdfebdebf473d0889.zip
Fix compilation warning.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/updatewindow.cpp2
-rw-r--r--src/gui/updatewindow.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index f4281cff1..542d665d5 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -673,7 +673,7 @@ void UpdaterWindow::logic()
}
}
-bool UpdaterWindow::validateFile(std::string filePath, long hash)
+bool UpdaterWindow::validateFile(std::string filePath, unsigned long hash)
{
FILE *file = fopen(filePath.c_str(), "rb");
if (!file)
diff --git a/src/gui/updatewindow.h b/src/gui/updatewindow.h
index 13b72f3a8..03fd57d1c 100644
--- a/src/gui/updatewindow.h
+++ b/src/gui/updatewindow.h
@@ -136,7 +136,7 @@ private:
static size_t memoryWrite(void *ptr, size_t size, size_t nmemb,
void *stream);
- bool validateFile(std::string filePath, long hash);
+ bool validateFile(std::string filePath, unsigned long hash);
enum UpdateDownloadStatus
{