accessible/src/generic/HyperTextAccessible.cpp:198:29: error: call to 'abs' is ambiguous (clang++ -stdlib=libc++)

RESOLVED FIXED in mozilla27

Status

()

Core
Disability Access APIs
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: Jan Beich, Assigned: Jan Beich)

Tracking

Trunk
mozilla27
x86_64
FreeBSD
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

4 years ago
accessible/src/generic/HyperTextAccessible.cpp:198:29: error:
      call to 'abs' is ambiguous
    frameScreenRect.width = std::abs(frameTextStartPoint.x - frameTextEndPoint.x);
                            ^~~~~~~~
/usr/include/c++/v1/cmath:659:1: note: candidate function
abs(float __x) _NOEXCEPT {return fabsf(__x);}
^
/usr/include/c++/v1/cmath:663:1: note: candidate function
abs(double __x) _NOEXCEPT {return fabs(__x);}
^
/usr/include/c++/v1/cmath:667:1: note: candidate function
abs(long double __x) _NOEXCEPT {return fabsl(__x);}
^
(Assignee)

Comment 1

4 years ago
Created attachment 811416 [details] [diff] [review]
use mozilla::Abs
Attachment #811416 - Flags: review?(surkov.alexander)

Updated

4 years ago
Attachment #811416 - Flags: review?(surkov.alexander) → review+

Updated

4 years ago
Assignee: nobody → jbeich
(Assignee)

Updated

4 years ago
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/ea609cf06b4e
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/ea609cf06b4e
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in before you can comment on or make changes to this bug.