diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-07-15 12:57:13 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-07-15 12:57:13 -0300 |
| commit | b9db9bd0ef69488c9f3368f571ea53c061151055 (patch) | |
| tree | 70308cd3a16a62ee4a3cf73d0b66dae167f113c7 | |
| parent | 050e8536bbc7f9b22d66be6c13ea302e4e82d37a (diff) | |
| download | lua-b9db9bd0ef69488c9f3368f571ea53c061151055.tar.gz lua-b9db9bd0ef69488c9f3368f571ea53c061151055.tar.bz2 lua-b9db9bd0ef69488c9f3368f571ea53c061151055.zip | |
'lua_Number' added to 'L_Umaxalign' union
| -rw-r--r-- | llimits.h | 10 |
1 files changed, 8 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llimits.h,v 1.134 2015/03/06 19:49:50 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.135 2015/06/09 14:21:00 roberto Exp roberto $ |
| 3 | ** Limits, basic types, and some other 'installation-dependent' definitions | 3 | ** Limits, basic types, and some other 'installation-dependent' definitions |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -64,7 +64,13 @@ typedef unsigned char lu_byte; | |||
| 64 | #if defined(LUAI_USER_ALIGNMENT_T) | 64 | #if defined(LUAI_USER_ALIGNMENT_T) |
| 65 | typedef LUAI_USER_ALIGNMENT_T L_Umaxalign; | 65 | typedef LUAI_USER_ALIGNMENT_T L_Umaxalign; |
| 66 | #else | 66 | #else |
| 67 | typedef union { double u; void *s; lua_Integer i; long l; } L_Umaxalign; | 67 | typedef union { |
| 68 | lua_Number n; | ||
| 69 | double u; | ||
| 70 | void *s; | ||
| 71 | lua_Integer i; | ||
| 72 | long l; | ||
| 73 | } L_Umaxalign; | ||
| 68 | #endif | 74 | #endif |
| 69 | 75 | ||
| 70 | 76 | ||
