aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim.c b/jim.c
index 0b89cee..c253f5c 100644
--- a/jim.c
+++ b/jim.c
@@ -8155,7 +8155,7 @@ static double JimRandDouble(Jim_Interp *interp)
unsigned long x;
JimRandomBytes(interp, &x, sizeof(x));
- return (double)x / (unsigned long)~0;
+ return (double)x / (double)~0UL;
}
static int JimExprOpIntUnary(Jim_Interp *interp, struct JimExprNode *node)