From 03946ac978d9a1a3230619e3da048002e5fda2d1 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Thu, 17 Feb 2011 00:44:14 +0100 Subject: DUALNUM: Add integer type to core VM. --- src/lib_math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib_math.c') 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) LJLIB_PUSH(top-2) /* Upvalue holds userdata with RandomState. */ LJLIB_CF(math_random) LJLIB_REC(.) { - int n = cast_int(L->top - L->base); + int n = (int)(L->top - L->base); RandomState *rs = (RandomState *)(uddata(udataV(lj_lib_upvalue(L, 1)))); U64double u; double d; -- cgit v1.2.3-55-g6feb