[Pkg-wmaker-commits] [wmbubble] 88/207: Accursed integer overflow

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:08 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbubble.

commit 658230e8b37d277fa990dacfe724a7c3d52aa8d1
Author: Robert Jacobs <rnjacobs at mit.edu>
Date:   Sat Aug 20 23:55:00 2011 -0700

    Accursed integer overflow
---
 bubblemon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bubblemon.c b/bubblemon.c
index e525021..07a11dc 100644
--- a/bubblemon.c
+++ b/bubblemon.c
@@ -1234,7 +1234,7 @@ void draw_clockhands(void) {
 	             (BOX_SIZE-10)/2 - 0.6*(BOX_SIZE-10)/2 * cos(theta),
 	             hourcolor);
 
-	theta = (mytime->tm_min * 60000000 + mytime->tm_sec * 1000000 + tv.tv_usec) * M_PI / (3600000000u/2);
+	theta = (mytime->tm_min * 60000000u + mytime->tm_sec * 1000000u + tv.tv_usec) * M_PI / (3600000000u/2);
 	/* theta = (mytime->tm_min / 30.0 + mytime->tm_sec / 1800.0)*M_PI; */
 	draw_aa_line(BOX_SIZE/2,
 	             (BOX_SIZE-10)/2,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git



More information about the Pkg-wmaker-commits mailing list