]> git.eshelyaron.com Git - emacs.git/commitdiff
(difftm): Don't store a long value into an int variable.
authorRichard M. Stallman <rms@gnu.org>
Sat, 28 May 1994 02:06:50 +0000 (02:06 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 28 May 1994 02:06:50 +0000 (02:06 +0000)
src/editfns.c

index 28036650c92653f072beb406367b74a17d00f12c..8b0158c322bb9c829c0315aec98ba6be2d8833b4 100644 (file)
@@ -629,7 +629,7 @@ difftm (a, b)
   int ay = a->tm_year + (TM_YEAR_ORIGIN - 1);
   int by = b->tm_year + (TM_YEAR_ORIGIN - 1);
   /* Some compilers can't handle this as a single return statement.  */
-  int days = (
+  long days = (
              /* difference in day of year */
              a->tm_yday - b->tm_yday
              /* + intervening leap days */