Re: Re: Fix for lua errors on AMD64 platform
On Sun, Jul 24, 2005 at 07:30:08PM +0100, Brian McErlean wrote:
>
> format("%02ld.%03ld [%01d.%03d]",
> s_info[i].value / SKILL_STEP, s_info[i].value % SKILL_STEP,
> s_info[i].mod / 1000, s_info[i].mod % 1000),
>
> Casting the parameters to long, or changing to a %d format specifier
> fixes this. eg.
>
> format("%02ld.%03ld [%01d.%03d]",
> (long) s_info[i].value / SKILL_STEP, (long) s_info[i].value % SKILL_STEP,
> s_info[i].mod / 1000, (long) s_info[i].mod % 1000),
Oy vey.
> Unfortunately, it
> looks like its a matter of ploughing through the warnings and replacing
> only for those cases.
> I could send you the compile log or take a stab at doing this, but
> I'm guessing its probably best to do it against the latest CVS,
> which I haven't got to compile.
If you get it working on AMD64, send us the diff, please. You seem to
be getting to the root of the problem already.
> (Can't find w_util.c, which I'm
> guessing is autogenerated. However, I'm not too familiar with the
> source or lua, so I'm not sure how to generate it.
> Are there docs / instructions for this anywhere?
(Continue reading)