From: Andreas Schneider Date: Thu, 7 Dec 2017 19:07:08 +0000 (+0100) Subject: s3:modules: Fix size type in getdate X-Git-Tag: talloc-2.1.12~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59b689474727c173f052d66a4ab924060181b903;p=thirdparty%2Fsamba.git s3:modules: Fix size type in getdate This fixes compilation with -Wstrict-overflow=2 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/modules/getdate.c b/source3/modules/getdate.c index 2879bc87f4b..7a5d68ee6a3 100644 --- a/source3/modules/getdate.c +++ b/source3/modules/getdate.c @@ -2492,7 +2492,7 @@ static int yylex (YYSTYPE *lvalp, parser_control *pc) { unsigned char c; - int count; + size_t count; for (;;) { diff --git a/source3/modules/getdate.y b/source3/modules/getdate.y index 1ddcda4fca7..2e49f15b87f 100644 --- a/source3/modules/getdate.y +++ b/source3/modules/getdate.y @@ -790,7 +790,7 @@ static int yylex (YYSTYPE *lvalp, parser_control *pc) { unsigned char c; - int count; + size_t count; for (;;) {