From a49af3e965f077a3685ca10bed50170ec3e0bf75 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 10 Nov 2016 11:42:13 +0100 Subject: [PATCH] Fix build for Windows 10. --- tester/log_collection_tester.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tester/log_collection_tester.c b/tester/log_collection_tester.c index 0c2f30c3a..085213147 100644 --- a/tester/log_collection_tester.c +++ b/tester/log_collection_tester.c @@ -84,7 +84,7 @@ static ssize_t getline(char **lineptr, size_t *n, FILE *stream) { *lineptr = bufptr; *n = size; - return p - bufptr - 1; + return (ssize_t)(p - bufptr) - 1; } #endif