diff --git a/tests/libtest/lib500.c b/tests/libtest/lib500.c
index 7cbc65e3f153c15e45718729e678ca6549f612b2..5943b584993b2d3b8537e370261b81bc94682ca7 100644
--- a/tests/libtest/lib500.c
+++ b/tests/libtest/lib500.c
@@ -8,6 +8,6 @@ int test(char *URL)
   curl_easy_setopt(curl, CURLOPT_HEADER, TRUE);
   res = curl_easy_perform(curl);
   curl_easy_cleanup(curl);  
-  return res;
+  return (int)res;
 }