From 15b85554808e51d3009f3742b1800620a217b149 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 14 Feb 2019 00:32:13 +0100 Subject: Use uint64_t instead of off_t for win32/MinGW compatibility --- src/download.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/download.c') diff --git a/src/download.c b/src/download.c index e09d911..b50abc1 100644 --- a/src/download.c +++ b/src/download.c @@ -2,8 +2,8 @@ * download.c * file download helper functions * + * Copyright (c) 2012-2019 Nikias Bassen. All Rights Reserved. * Copyright (c) 2012-2013 Martin Szulecki. All Rights Reserved. - * Copyright (c) 2012 Nikias Bassen. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -146,7 +146,7 @@ int download_to_file(const char* url, const char* filename, int enable_progress) #endif fclose(f); - if ((sz == 0) || (sz == (off_t)-1)) { + if ((sz == 0) || ((int64_t)sz == (int64_t)-1)) { res = -1; remove(filename); } -- cgit v1.1-32-gdbae