summaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-18 15:18:45 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-18 15:18:45 -0300
commit54ac25334325d4d7c35005a0126ee8168ca1ae49 (patch)
treed811bcba5e25cc8a82062d449f3735ad145adeee /llimits.h
parentbb129031205acc64eb6b41c98d8a08c1fccce308 (diff)
downloadlua-github-54ac25334325d4d7c35005a0126ee8168ca1ae49.tar.gz
detail (no need to define LUAI_USER_ALIGNMENT_T when it is not
defined; simpler to define 'L_Umaxalign' directly)
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/llimits.h b/llimits.h
index f9fb8d00..d7d9a08f 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
/*
-** $Id: llimits.h,v 1.117 2014/06/26 16:17:35 roberto Exp roberto $
+** $Id: llimits.h,v 1.118 2014/07/15 21:26:50 roberto Exp roberto $
** Limits, basic types, and some other `installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@@ -53,11 +53,12 @@ typedef unsigned char lu_byte;
/* type to ensure maximum alignment */
-#if !defined(LUAI_USER_ALIGNMENT_T)
-#define LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; }
+#if defined(LUAI_USER_ALIGNMENT_T)
+typedef LUAI_USER_ALIGNMENT_T L_Umaxalign;
+#else
+typedef union { double u; void *s; lua_Integer i; long l; } L_Umaxalign;
#endif
-typedef LUAI_USER_ALIGNMENT_T L_Umaxalign;
/* types of 'usual argument conversions' for lua_Number and lua_Integer */