[MacPorts] #54886: inkscape @0.92.2: error: call to 'abs' is ambiguous

MacPorts noreply at macports.org
Fri Oct 6 08:35:28 UTC 2017


#54886: inkscape @0.92.2: error: call to 'abs' is ambiguous
---------------------------+----------------------
  Reporter:  tempesti0n1c  |      Owner:  dbevans
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.4.1
Resolution:                |   Keywords:
      Port:  inkscape      |
---------------------------+----------------------

Comment (by michaellass):

 Indeed, `i->pathNext->id.objID` is of type `unsigned int`, for which
 `abs()` does not make much sense. Replacing the line by the following
 should fix the issue and keep the code functional:
 {{{
 COLA_ASSERT(abs((int)i->pathNext->id.objID - (int)i->id.objID) != 2);
 }}}

 If nobody is quicker than me, I will report this upstream and add a
 corresponding patch to the Portfile.

--
Ticket URL: <https://trac.macports.org/ticket/54886#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list