From 78ad8331be15eeb11a02b57bd785fc65df0eadbd Mon Sep 17 00:00:00 2001
From: Marc Hoersken <info@marc-hoersken.de>
Date: Thu, 28 Jun 2012 15:54:39 +0200
Subject: [PATCH 2/2] test lib582: Fixed size_t conversion warning

---
 tests/libtest/lib582.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/libtest/lib582.c b/tests/libtest/lib582.c
index 25b7060..a248a35 100644
--- a/tests/libtest/lib582.c
+++ b/tests/libtest/lib582.c
@@ -172,7 +172,7 @@ static int checkForCompletion(CURLM* curl, int* success)
 static int getMicroSecondTimeout(struct timeval* timeout)
 {
   struct timeval now;
-  int result;
+  long result;
 
   gettimeofday(&now, 0);
   result = (timeout->tv_sec - now.tv_sec) * 1000000 +
@@ -180,7 +180,7 @@ static int getMicroSecondTimeout(struct timeval* timeout)
   if (result < 0)
     result = 0;
 
-  return result;
+  return curlx_sltosi(result);
 }
 
 /**
-- 
1.7.2.5

