summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Config.h2
-rw-r--r--src/Format.cpp2
-rw-r--r--src/search/SearchModel.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/Config.h b/src/Config.h
index a0e5dfe..385f216 100644
--- a/src/Config.h
+++ b/src/Config.h
@@ -181,7 +181,7 @@ extern unsigned char ZSIZE;
#ifdef WIN
#define strcasecmp stricmp
-#endif //_MSC_VER
+#endif
#if defined(_MSC_VER)
#define fmin(a,b) (((a) < (b)) ? (a) : (b))
#define fminf(a,b) (((a) < (b)) ? (a) : (b))
diff --git a/src/Format.cpp b/src/Format.cpp
index 78e4a4f..c290e71 100644
--- a/src/Format.cpp
+++ b/src/Format.cpp
@@ -4,7 +4,7 @@
#include <stdexcept>
#include <iostream>
#include <iterator>
-#include "zlib.h"
+#include <zlib.h>
#include <stdio.h>
#include "Format.h"
#include "graphics/Graphics.h"
diff --git a/src/search/SearchModel.h b/src/search/SearchModel.h
index a2ea5b7..c894090 100644
--- a/src/search/SearchModel.h
+++ b/src/search/SearchModel.h
@@ -61,7 +61,7 @@ public:
vector<SaveInfo*> GetSaveList();
vector<pair<string, int> > GetTagList();
string GetLastError() { return lastError; }
- int GetPageCount() { return max(1, (int)(ceil(resultCount/16))); }
+ int GetPageCount() { return max(1, (int)(ceil(resultCount/16.0f))); }
int GetPageNum() { return currentPage; }
std::string GetLastQuery() { return lastQuery; }
void SetSort(string sort) { if(!updateSaveListWorking) { currentSort = sort; } notifySortChanged(); }