and fix corresponding build breakages under Windows



git-svn-id: http://smhasher.googlecode.com/svn/trunk@134 77a7d1d3-4c08-bdc2-d393-d5859734b01a
diff --git a/SpeedTest.cpp b/SpeedTest.cpp
index fc71a36..2265389 100644
--- a/SpeedTest.cpp
+++ b/SpeedTest.cpp
@@ -63,11 +63,11 @@
 // Return true if the largest value in v[0,len) is more than three

 // standard deviations from the mean

 

-bool ContainsOutlier ( std::vector<double> & v, int len )

+bool ContainsOutlier ( std::vector<double> & v, size_t len )

 {

   double mean = 0;

   

-  for(int i = 0; i < len; i++)

+  for(size_t i = 0; i < len; i++)

   {

     mean += v[i];

   }

@@ -76,7 +76,7 @@
   

   double stdv = 0;

   

-  for(int i = 0; i < len; i++)

+  for(size_t i = 0; i < len; i++)

   {

     double x = v[i] - mean;

     stdv += x*x;

diff --git a/main.cpp b/main.cpp
index 03f3e42..eca0848 100644
--- a/main.cpp
+++ b/main.cpp
@@ -7,7 +7,6 @@
 

 #include <stdio.h>

 #include <time.h>

-#include <unistd.h>

 

 //-----------------------------------------------------------------------------

 // Configuration. TODO - move these to command-line flags