Fix errors and warnings found on VisualStudio 2005

This commit is contained in:
Jason Turner
2012-11-16 12:27:41 -07:00
parent 4c65e45598
commit afd27a4b01
2 changed files with 15 additions and 4 deletions

View File

@@ -7,6 +7,7 @@
#include <iostream>
#include <list>
#include <algorithm>
#include <chaiscript/chaiscript.hpp>
#include <boost/thread.hpp>
@@ -67,7 +68,7 @@ int main()
std::vector<boost::shared_ptr<boost::thread> > threads;
// Ensure at least two, but say only 7 on an 8 core processor
int num_threads = std::max(boost::thread::hardware_concurrency() - 1, 2u);
int num_threads = std::max<unsigned int>(boost::thread::hardware_concurrency() - 1, 2u);
for (int i = 0; i < num_threads; ++i)
{