about summary refs log tree commit diff stats
path: root/src/parsdate.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2009-01-02 02:01:19 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2009-01-02 02:01:19 -0500
commitdfae7cc51e19e1ca4aa857bf858e7e0ad4fa9ce1 (patch)
treeb60b22b24df118d09bfa7b7e908a6ed74e165d7d /src/parsdate.c
parent1928ffc4107112416223241f38b9c89f1620503f (diff)
downloadlynx-snapshots-dfae7cc51e19e1ca4aa857bf858e7e0ad4fa9ce1.tar.gz
snapshot of project "lynx", label v2-8-7dev_12a
Diffstat (limited to 'src/parsdate.c')
-rw-r--r--src/parsdate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parsdate.c b/src/parsdate.c
index 0549a6e3..97578ef3 100644
--- a/src/parsdate.c
+++ b/src/parsdate.c
@@ -33,7 +33,7 @@ static int yygrowstack(void);
 #define YYPREFIX "yy"
 #line 2 "./parsdate.y"
 /*
- *  $LynxId: parsdate.c,v 1.7 2008/12/27 01:03:28 tom Exp $
+ *  $LynxId: parsdate.c,v 1.8 2009/01/01 22:12:42 tom Exp $
  *
  *  This module is adapted and extended from tin, to use for LYmktime().
  *
@@ -842,7 +842,7 @@ date_lex(void)
 		 (c = *yyInput++) != '\0' && CTYPE(isdigit, c);
 		 ) {
 		if (p < &buff[sizeof buff - 1])
-		    *p++ = c;
+		    *p++ = (char) c;
 	    }
 	    *p = '\0';
 	    i = atoi(buff);
@@ -858,7 +858,7 @@ date_lex(void)
 		 (c = *yyInput++) == '.' || CTYPE(isalpha, c);
 		 ) {
 		if (p < &buff[sizeof buff - 1])
-		    *p++ = CTYPE(isupper, c) ? tolower(c) : c;
+		    *p++ = (char) (CTYPE(isupper, c) ? tolower(c) : c);
 	    }
 	    *p = '\0';
 	    yyInput--;