about summary refs log tree commit diff stats
path: root/src/LYUtils.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2018-12-26 01:28:15 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2018-12-26 01:28:15 +0000
commitfd8ff03480d588c28b9424f2976beadbe7a55a35 (patch)
treea18e136f210bdde269d9e60f13d733bd6d254593 /src/LYUtils.c
parent28f325f21ceede50416e3828e01072ae151551d6 (diff)
downloadlynx-snapshots-fd8ff03480d588c28b9424f2976beadbe7a55a35.tar.gz
snapshot of project "lynx", label v2-9-0dev_0a
Diffstat (limited to 'src/LYUtils.c')
-rw-r--r--src/LYUtils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LYUtils.c b/src/LYUtils.c
index 682cbf2f..b41c95b3 100644
--- a/src/LYUtils.c
+++ b/src/LYUtils.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYUtils.c,v 1.292 2018/05/15 21:20:52 tom Exp $
+ * $LynxId: LYUtils.c,v 1.293 2018/12/26 01:23:05 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTTCP.h>
@@ -3545,8 +3545,8 @@ static int fmt_tempname(char *result,
      */
     counter = MAX_TEMPNAME;
     if (names_used < MAX_TEMPNAME) {
-	long get_rand = lynx_rand();
-	long max_rand = LYNX_RAND_MAX;
+	long get_rand = (long) lynx_rand();
+	long max_rand = (long) LYNX_RAND_MAX;
 
 	counter = (unsigned) (((float) MAX_TEMPNAME * (float) get_rand) /
 			      (float) max_rand + 1);