Closed Bug 646731 Opened 14 years ago Closed 14 years ago

Avoid promotion to double in IsPaddingZero and IsMarginZero

Categories

(Core :: Layout, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jrmuizel, Assigned: jrmuizel)

Details

Attachments

(1 file)

Caught with -Wdouble-promotion. This may not impact codegen but it's more correct.
Attachment #523209 - Flags: review?(dbaron)
Attachment #523209 - Attachment is patch: true
Attachment #523209 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 523209 [details] [diff] [review] Using an integer literal will cause us to promote to the right type Can you do 0.0f? I'd sort of prefer that. But r=dbaron either way, I guess.
Attachment #523209 - Flags: review?(dbaron) → review+
(In reply to comment #1) > Comment on attachment 523209 [details] [diff] [review] > Using an integer literal will cause us to promote to the right type > > Can you do 0.0f? I'd sort of prefer that. But r=dbaron either way, I guess. Done. http://hg.mozilla.org/mozilla-central/rev/8adbca2b3518
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee: nobody → jmuizelaar
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: