Added some casts for 32-bit machines
When both 'int' and 'l_obj' have 32 bits, an unsigned int needs a cast to be assigned to 'l_obj'. (As long as 'l_obj' can count the total memory used by the system, these casts should be safe.)
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
/*
|
||||
** 'l_mem' is a signed integer big enough to count the total memory
|
||||
** used by Lua. (It is signed due to the use of debt in several
|
||||
** computations.) Usually, 'ptrdiff_t' should work, but we use 'long'
|
||||
** for 16-bit machines.
|
||||
** computations.) 'lu_mem' is a corresponding unsigned type. Usually,
|
||||
** 'ptrdiff_t' should work, but we use 'long' for 16-bit machines.
|
||||
*/
|
||||
#if defined(LUAI_MEM) /* { external definitions? */
|
||||
typedef LUAI_MEM l_mem;
|
||||
|
||||
Reference in New Issue
Block a user