Fix build errors on Linux (pthread library, signed comparison)

This commit is contained in:
Eric Fischer
2016-09-20 16:01:10 -07:00
parent 4fb54eaeeb
commit 083a280659
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -20,7 +20,7 @@
std::string dequote(std::string s);
bool pk = false;
int CPUS;
size_t CPUS;
struct stats {
int minzoom;
@@ -414,7 +414,7 @@ void handle_tasks(std::map<zxy, std::vector<std::string>> &tasks, std::vector<st
}
}
for (int i = 0; i < CPUS; i++) {
for (size_t i = 0; i < CPUS; i++) {
void *retval;
if (pthread_join(pthreads[i], &retval) != 0) {