force a floating point division

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
marco candrian 2008-04-20 03:06:01 +02:00 committed by Julien Danjou
parent 8129bb7135
commit 88a08c210f
1 changed files with 1 additions and 1 deletions

View File

@ -801,7 +801,7 @@ uicb_client_settrans(int screen __attribute__ ((unused)), char *arg)
{
memcpy(&current_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;