Skip to content

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Aug 5, 2025

Flash Player normalizes signed zeros returned by Math.min/max to +0.

kjarosh added 2 commits August 5, 2025 21:47
Flash Player normalizes signed zeros returned by Math.min/max to +0.
This test verifies the behavior of comparing zeros in Math.min/max.
@kjarosh kjarosh added A-avm1 Area: AVM1 (ActionScript 1 & 2) T-fix Type: Bug fix (in something that's supposed to work already) waiting-on-review Waiting on review from a Ruffle team member labels Aug 5, 2025
@moulins
Copy link
Contributor

moulins commented Aug 8, 2025

See issue #8336.

I'm pretty sure AVM1 normalizes all signed zeros to +0, in all circumstances (maybe as part of automatic float-to-int conversions?), so maybe we should add this check in the From<f64> impl, as was proposed for AVM2.

@kjarosh kjarosh removed the waiting-on-review Waiting on review from a Ruffle team member label Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm1 Area: AVM1 (ActionScript 1 & 2) T-fix Type: Bug fix (in something that's supposed to work already)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants