about summary refs log tree commit diff stats
path: root/src/parsdate.c
diff options
context:
space:
mode:
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--;