summaryrefslogtreecommitdiff
path: root/src/lib_math.c
diff options
context:
space:
mode:
authorMike Pall <mike>2011-02-17 00:44:14 +0100
committerMike Pall <mike>2011-02-17 00:44:14 +0100
commit03946ac978d9a1a3230619e3da048002e5fda2d1 (patch)
treec0a7b8edaccf789f128468320d451d9a1fee1495 /src/lib_math.c
parent963f05c7e153714921484e0de71a7cb6bab338d9 (diff)
downloadluajit-03946ac978d9a1a3230619e3da048002e5fda2d1.tar.gz
luajit-03946ac978d9a1a3230619e3da048002e5fda2d1.tar.bz2
luajit-03946ac978d9a1a3230619e3da048002e5fda2d1.zip
DUALNUM: Add integer type to core VM.
Diffstat (limited to 'src/lib_math.c')
-rw-r--r--src/lib_math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_math.c b/src/lib_math.c
index 79d91e73..46841e08 100644
--- a/src/lib_math.c
+++ b/src/lib_math.c
@@ -129,7 +129,7 @@ static void random_init(RandomState *rs, double d)
129LJLIB_PUSH(top-2) /* Upvalue holds userdata with RandomState. */ 129LJLIB_PUSH(top-2) /* Upvalue holds userdata with RandomState. */
130LJLIB_CF(math_random) LJLIB_REC(.) 130LJLIB_CF(math_random) LJLIB_REC(.)
131{ 131{
132 int n = cast_int(L->top - L->base); 132 int n = (int)(L->top - L->base);
133 RandomState *rs = (RandomState *)(uddata(udataV(lj_lib_upvalue(L, 1)))); 133 RandomState *rs = (RandomState *)(uddata(udataV(lj_lib_upvalue(L, 1))));
134 U64double u; 134 U64double u;
135 double d; 135 double d;