]> git.eshelyaron.com Git - emacs.git/commitdiff
* lib/timespec-sub.c: Copy manually from Gnulib.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Jul 2024 16:18:07 +0000 (18:18 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Jul 2024 20:00:39 +0000 (22:00 +0200)
(cherry picked from commit 831539542f90c2844418c8b0657f4c050a3d9dfb)

lib/timespec-sub.c

index f6d948780e4dfa9cc3a6a8c0c83a13f21ff1dad5..38f9c6a4dc29c1a71d3a911c90d095fb5a60f10f 100644 (file)
@@ -31,7 +31,7 @@ struct timespec
 timespec_sub (struct timespec a, struct timespec b)
 {
   int nsdiff = a.tv_nsec - b.tv_nsec;
-  bool borrow = nsdiff < 0;
+  int borrow = nsdiff < 0;
   time_t rs;
   int rns;
   bool v = ckd_sub (&rs, a.tv_sec, b.tv_sec);