diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-12-28 20:43:16 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-12-28 21:47:20 +0000 |
commit | d8273e198ccba561464c34d80fecbd050dc26511 (patch) | |
tree | 2d666c4145df1784e2f669c6fdd311b58b4b98d7 /tests | |
parent | 8f4014538415603eacb9ed43fe80201565013595 (diff) |
test1509: Fixed compilation warning
lib1509.c:93:18: warning: conversion to 'long int' from 'size_t' may
alter its value
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/lib1509.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/libtest/lib1509.c b/tests/libtest/lib1509.c index 3c86a36b2..f67c7d6ea 100644 --- a/tests/libtest/lib1509.c +++ b/tests/libtest/lib1509.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -28,7 +28,7 @@ size_t WriteOutput(void *ptr, size_t size, size_t nmemb, void *stream); size_t WriteHeader(void *ptr, size_t size, size_t nmemb, void *stream); -long realHeaderSize = 0; +unsigned long realHeaderSize = 0; int test(char *URL) { @@ -90,7 +90,8 @@ size_t WriteHeader(void *ptr, size_t size, size_t nmemb, void *stream) { (void)ptr; (void)stream; - realHeaderSize += size * nmemb; + + realHeaderSize += curlx_uztoul(size * nmemb); return nmemb * size; } |