s3:modules: Fix size type in getdate
authorAndreas Schneider <asn@samba.org>
Thu, 7 Dec 2017 19:07:08 +0000 (20:07 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 20 Mar 2018 22:16:16 +0000 (23:16 +0100)
This fixes compilation with -Wstrict-overflow=2

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/modules/getdate.c
source3/modules/getdate.y

index 2879bc87f4b8bc0e82e026d0dc2e46faf5ed30e5..7a5d68ee6a3e7b02ea016996a0950de5e3831b5a 100644 (file)
@@ -2492,7 +2492,7 @@ static int
 yylex (YYSTYPE *lvalp, parser_control *pc)
 {
   unsigned char c;
-  int count;
+  size_t count;
 
   for (;;)
     {
index 1ddcda4fca79dfe89bad54a6815cc67d84a82949..2e49f15b87ff4e30f26f67e99f3e494379c8c37b 100644 (file)
@@ -790,7 +790,7 @@ static int
 yylex (YYSTYPE *lvalp, parser_control *pc)
 {
   unsigned char c;
-  int count;
+  size_t count;
 
   for (;;)
     {