gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Bastiaan Jacques
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1986-g46367cd
Date: Fri, 16 May 2014 07:34:20 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  46367cd4cd40e8bb8d631a3c4089fab1557852d1 (commit)
      from  45d6c4aaf0ed196172cf2b6d03d3e00cfbd3533e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=46367cd4cd40e8bb8d631a3c4089fab1557852d1


commit 46367cd4cd40e8bb8d631a3c4089fab1557852d1
Author: Bastiaan Jacques <address@hidden>
Date:   Fri May 16 09:32:34 2014 +0200

    Making one of the operands unsigned should promote the other ones,
    already making the overflow a defined operation.

diff --git a/libbase/RTMP.cpp b/libbase/RTMP.cpp
index f99d9fe..4fb609f 100644
--- a/libbase/RTMP.cpp
+++ b/libbase/RTMP.cpp
@@ -1162,16 +1162,15 @@ getUptime()
     // timestamping this is not a big problem, assuming a single RTMP session
     // won't last that long. We ensure the overflow happens in a manner
     // avoiding undefined behaviour.
-    const boost::uint32_t max = std::numeric_limits<boost::uint32_t>::max();
 
 #if !defined(_WIN32) && !defined(__amigaos4__)
     struct tms t;
-    return (times(&t) * (1000ULL /  sysconf(_SC_CLK_TCK))) % max;
+    return times(&t) * (1000UL /  sysconf(_SC_CLK_TCK));
 #elif defined(__amigaos4__)
     struct tms t;
-    return (times(&t) * (1000ULL / 50)) % max;
+    return times(&t) * (1000UL / 50);
 #else
-    return (std::clock() * (100ULL / CLOCKS_PER_SEC) % max;
+    return std::clock() * (100UL / CLOCKS_PER_SEC);
 #endif
 }
 

-----------------------------------------------------------------------

Summary of changes:
 libbase/RTMP.cpp |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]