kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=84baa864922709ce1520cb309237a3a4d775a81e

commit 84baa864922709ce1520cb309237a3a4d775a81e
Author: Kim Woelders <k...@woelders.dk>
Date:   Sun Mar 7 19:31:35 2021 +0100

    Fix pager live updates if millisecond time is initially "negative"
---
 src/pager.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/pager.c b/src/pager.c
index 94747663..d4ea39c9 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various 
contributors
- * Copyright (C) 2004-2020 Kim Woelders
+ * Copyright (C) 2004-2021 Kim Woelders
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -833,8 +833,7 @@ static void
 PagersCheckUpdate(void)
 {
    static unsigned int tms_last = 0;
-   unsigned int        tms;
-   int                 dtms;
+   unsigned int        tms, dtms;
 
    if (!Mode_pagers.update_pending || !Conf_pagers.enable)
       return;
@@ -843,7 +842,7 @@ PagersCheckUpdate(void)
      {
        tms = GetTimeMs();
        dtms = (Conf_pagers.scanspeed > 0) ? 1000 / Conf_pagers.scanspeed : 100;
-       if ((int)(tms - tms_last) < dtms)
+       if ((unsigned int)(tms - tms_last) < dtms)
          {
             /* The purpose of this timer is to trigger the idler */
             if (Mode_pagers.timer_pending)

-- 


Reply via email to