From d58ce8106ef59366008cf23c68bc1fe3fb81eea4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 2 Oct 2012 14:32:44 -0300 Subject: [PATCH] macro 'lua_number2unsigned' also needs proper definition if lua_Number is float --- llimits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llimits.h b/llimits.h index 665eb951..a316a0a0 100644 --- a/llimits.h +++ b/llimits.h @@ -1,5 +1,5 @@ /* -** $Id: llimits.h,v 1.99 2012/05/28 20:32:28 roberto Exp roberto $ +** $Id: llimits.h,v 1.100 2012/10/01 14:14:45 roberto Exp roberto $ ** Limits, basic types, and some other `installation-dependent' definitions ** See Copyright Notice in lua.h */ @@ -256,7 +256,7 @@ union luai_Cast { double l_d; LUA_INT32 l_p[2]; }; #if !defined(lua_number2unsigned) /* { */ /* the following definition assures proper modulo behavior */ -#if defined(LUA_NUMBER_DOUBLE) +#if defined(LUA_NUMBER_DOUBLE) || defined(LUA_NUMBER_FLOAT) #include #define SUPUNSIGNED ((lua_Number)(~(lua_Unsigned)0) + 1) #define lua_number2unsigned(i,n) \