diff options
Diffstat (limited to 'src/lj_dispatch.c')
-rw-r--r-- | src/lj_dispatch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_dispatch.c b/src/lj_dispatch.c index c29cad46..b1d17add 100644 --- a/src/lj_dispatch.c +++ b/src/lj_dispatch.c | |||
@@ -50,7 +50,8 @@ void lj_dispatch_init(GG_State *GG) | |||
50 | /* Initialize hotcount table. */ | 50 | /* Initialize hotcount table. */ |
51 | void lj_dispatch_init_hotcount(global_State *g) | 51 | void lj_dispatch_init_hotcount(global_State *g) |
52 | { | 52 | { |
53 | HotCount start = (HotCount)G2J(g)->param[JIT_P_hotloop]; | 53 | int32_t hotloop = G2J(g)->param[JIT_P_hotloop]; |
54 | HotCount start = (HotCount)(hotloop*HOTCOUNT_LOOP - 1); | ||
54 | HotCount *hotcount = G2GG(g)->hotcount; | 55 | HotCount *hotcount = G2GG(g)->hotcount; |
55 | uint32_t i; | 56 | uint32_t i; |
56 | for (i = 0; i < HOTCOUNT_SIZE; i++) | 57 | for (i = 0; i < HOTCOUNT_SIZE; i++) |