lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> Likely because you declare 'Sleep' as 'void(*)(int)', but Sleep
> actually takes a DWORD, which is usually typedef'd to 'double'.

On Windows, DWORD is not a double, but an unsigned long (32-bit wide in both 32- and 64-bit ABIs):

  typedef unsigned long       DWORD;

Apologies for the off-topic post, just wanted to clarify.