aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstate.c b/lstate.c
index 81e10851..1cbb1724 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.148 2017/11/23 16:35:54 roberto Exp roberto $ 2** $Id: lstate.c,v 2.149 2017/12/19 16:40:17 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -35,7 +35,7 @@
35*/ 35*/
36#if !defined(luai_makeseed) 36#if !defined(luai_makeseed)
37#include <time.h> 37#include <time.h>
38#define luai_makeseed() cast(unsigned int, time(NULL)) 38#define luai_makeseed() cast_uint(time(NULL))
39#endif 39#endif
40 40
41 41
@@ -67,7 +67,7 @@ typedef struct LG {
67** Layout Randomization (if present) to increase randomness.. 67** Layout Randomization (if present) to increase randomness..
68*/ 68*/
69#define addbuff(b,p,e) \ 69#define addbuff(b,p,e) \
70 { size_t t = cast(size_t, e); \ 70 { size_t t = cast_sizet(e); \
71 memcpy(b + p, &t, sizeof(t)); p += sizeof(t); } 71 memcpy(b + p, &t, sizeof(t)); p += sizeof(t); }
72 72
73static unsigned int makeseed (lua_State *L) { 73static unsigned int makeseed (lua_State *L) {