ToBoolean() of -0.0f and float.NaN do not produce the correct value when interpreted

VERIFIED FIXED in Q1 12 - Brannan

Status

Tamarin
Interpreter
P3
normal
VERIFIED FIXED
7 years ago
7 years ago

People

(Reporter: Brent Baker, Assigned: Virgil Palanciuc)

Tracking

unspecified
Q1 12 - Brannan
x86
All
Bug Flags:
in-testsuite +
flashplayer-qrb +
flashplayer-bug -
flashplayer-triage +

Details

(Reporter)

Description

7 years ago
float specification s9.7 lists:
ToBoolean operation is of type float then the result is false if the value of
the input argument is +0.0f, -0.0f, or float.NaN - otherwise the result is true.

-0.0f and float.NaN produce an incorrect value of true if the code is interpreted and a correct value of false if the code is jitted.

Captured in testcase as3/Types/Float/flt_9_7.as
based on mq 101:636b057e8cfa
Flags: in-testsuite+
Flags: flashplayer-triage+
Flags: flashplayer-qrb?
Flags: flashplayer-bug-
(Reporter)

Comment 1

7 years ago
changeset:   102:bcbb732b25e0
parent:      100:a77e21435671
user:        Virgil Palanciuc <virgilp@adobe.com>
date:        Thu Sep 15 15:16:31 2011 +0300
summary:     fixed most issues with float/float4 on x32/x64
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
(Reporter)

Comment 2

7 years ago
changeset:   102:bcbb732b25e0
parent:      100:a77e21435671
user:        Virgil Palanciuc <virgilp@adobe.com>
date:        Thu Sep 15 15:16:31 2011 +0300
summary:     fixed most issues with float/float4 on x32/x64
(Reporter)

Updated

7 years ago
Status: RESOLVED → VERIFIED

Updated

7 years ago
Flags: flashplayer-qrb? → flashplayer-qrb+
Priority: -- → P3
Target Milestone: --- → Q1 12 - Brannan
You need to log in before you can comment on or make changes to this bug.