Closed Bug 1156536 Opened 9 years ago Closed 9 years ago

BaseMargin<T>::Side casts enum SideT to T and adds to pointer

Categories

(Core :: Graphics, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: lsalzman, Assigned: lsalzman)

Details

Attachments

(1 file)

The Side(SideT) methods in gfx/BaseMargin<T> cast the SideT argument to a value of type T before adding it to a pointer. It should rather be cast to an int, as T is sometimes a Float (as instantiated in Rect.h).
Attachment #8595011 - Flags: review+
Attachment #8595011 - Flags: review+ → review?(jmuizelaar)
Attachment #8595011 - Flags: checkin?
Attachment #8595011 - Flags: review?(jmuizelaar)
Attachment #8595011 - Flags: review+
Attachment #8595011 - Flags: checkin?
https://hg.mozilla.org/mozilla-central/rev/cd4dc49dd573
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: