From 88a08c210f97d67b1f14905e24bfef1ddace6e35 Mon Sep 17 00:00:00 2001 From: marco candrian Date: Sun, 20 Apr 2008 03:06:01 +0200 Subject: [PATCH] force a floating point division Signed-off-by: Julien Danjou --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 41af51ba..37b7385e 100644 --- a/client.c +++ b/client.c @@ -801,7 +801,7 @@ uicb_client_settrans(int screen __attribute__ ((unused)), char *arg) { memcpy(¤t_opacity_raw, data, sizeof(unsigned int)); XFree(data); - current_opacity = current_opacity_raw / 0xffffffff; + current_opacity = (double) current_opacity_raw / 0xffffffff; } else set_prop = 1;