Closed Bug 788681 Opened 14 years ago Closed 14 years ago

Typedefs IOSurfaceGetWidthFunc and IOSurfaceGetHeightFunc swapped in QuartzSupport.mm

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: smichaud, Assigned: BenWa)

Details

Attachments

(1 file)

http://hg.mozilla.org/mozilla-central/annotate/1948141f2eb0/gfx/2d/QuartzSupport.mm#l131 This is trivially easy to fix. But it's very odd that it wasn't noticed before.
Oops, it wasn't the function pointers that were swapped -- just the functions' typedefs. Which doesn't matter, since both functions have the same typedef.
Summary: Function pointers for IOSurfaceGetHeight and IOSurfaceGetWidth swapped in QuartzSupport.mm → Typedefs IOSurfaceGetWidthFunc and IOSurfaceGetHeightFunc swapped in QuartzSupport.mm
The type are inverted but they are both the same type with a different name so it wouldn't cause a noticeable bug. Let's fix it anyways. Want me write up the patch?
> Want me write up the patch? Go ahead :-)
Attached patch patch — — Splinter Review
Assignee: nobody → bgirard
Status: NEW → ASSIGNED
Attachment #658602 - Flags: review?(smichaud)
Attachment #658602 - Flags: review?(smichaud) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: