From 4b0725d5fc87da33477b13e74a32f24fafda3541 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sun, 17 Jan 2010 20:47:10 +0100 Subject: Fix more 64 bit conversion warnings. --- src/lj_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lj_alloc.c b/src/lj_alloc.c index c8e4910d..9aa6440d 100644 --- a/src/lj_alloc.c +++ b/src/lj_alloc.c @@ -203,7 +203,7 @@ struct malloc_chunk { typedef struct malloc_chunk mchunk; typedef struct malloc_chunk *mchunkptr; typedef struct malloc_chunk *sbinptr; /* The type of bins of chunks */ -typedef unsigned int bindex_t; /* Described below */ +typedef size_t bindex_t; /* Described below */ typedef unsigned int binmap_t; /* Described below */ typedef unsigned int flag_t; /* The type of various bit flag sets */ @@ -416,7 +416,7 @@ static int has_segment_link(mstate m, msegmentptr ss) /* assign tree index for size S to variable I */ #define compute_tree_index(S, I)\ {\ - unsigned int X = S >> TREEBIN_SHIFT;\ + unsigned int X = (unsigned int)(S >> TREEBIN_SHIFT);\ if (X == 0) {\ I = 0;\ } else if (X > 0xFFFF) {\ -- cgit v1.2.3-55-g6feb