From b7ae43d457ca7b5a46ca768f482b334d70897a14 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 11 Jan 2002 18:23:01 -0200 Subject: detail --- lstring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lstring.c') diff --git a/lstring.c b/lstring.c index d12b6f0f..27e3214b 100644 --- a/lstring.c +++ b/lstring.c @@ -68,7 +68,7 @@ static TString *newlstr (lua_State *L, const char *str, size_t l, lu_hash h) { TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { TString *ts; - lu_hash h = l; /* seed */ + lu_hash h = (lu_hash)l; /* seed */ size_t step = (l>>5)+1; /* if string is too long, don't hash all its chars */ size_t l1; for (l1=l; l1>=step; l1-=step) /* compute hash */ -- cgit v1.2.3-55-g6feb