Thanks.
Applied in r29937.
Francois.

2008/8/1 Robert G. Jakabosky (via RT) <[EMAIL PROTECTED]>:
> # New Ticket Created by  Robert G. Jakabosky
> # Please include the string:  [perl #57504]
> # in the subject line of all future correspondence about this issue.
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57504 >
>
>
> Hello everyone,
>        This is my first patch to the parrot project.
>
> This patch fixes 19 failed tests for the Lua language.
>
> Changes to 'languages/lua/src/build/translator.pl':
> When the 32bit Lua instruction codes are being decoded they are stored in a
> 64bit signed integer.  The top 32bits where not always masked off.  This
> caused a problem for instructions that had the 31st bit sit, since the top
> 32bits would have been sign-extended (filled with 1s).
>
> Changes to 'languages/lua/t/os.t':
> 1 test from 'os.t' fails on 64bit systems because 'os.time()' does not return
> a 'nil' for dates with year < 1970.  'os.time()' only returns 'nil' when
> mktime returns ((time_t)-1).  On 32bit systems mktime uses -1 for dates
> outside year range 1970-2038.  On 64bit systems mktime returns negative
> values for dates before year 1970, so there is only one date that will cause
> mktime to return -1 and make 'os.time()' in lua return 'nil'.  I have updated
> the test to use that one date that returns 'nil' on both 32bit & 64bit
> systems.
>
>
>  CREDITS                               |    4 ++++
>  languages/lua/src/build/translator.pl |    4 ++++
>  languages/lua/t/os.t                  |   16 +++++++++-------
>  3 files changed, 17 insertions(+), 7 deletions(-)
>
> --
> Robert G. Jakabosky
>

Reply via email to