summaryrefslogtreecommitdiff
path: root/src/demos/fire.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/fire.c')
-rw-r--r--src/demos/fire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/demos/fire.c b/src/demos/fire.c
index 34fac440..b2dad65d 100644
--- a/src/demos/fire.c
+++ b/src/demos/fire.c
@@ -144,7 +144,7 @@ static float beta = 90.0;
static float
vrnd(void)
{
- return (((float) rand()) / RAND_MAX);
+ return ((float) rand() / (float) RAND_MAX);
}
static void