This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD Editorial status.

690. abs(long long) should return long long

Section: 28.7 [c.math] Status: NAD Editorial Submitter: Niels Dekker Opened: 2007-06-10 Last modified: 2016-01-28

Priority: Not Prioritized

View all other issues in [c.math].

View all issues with NAD Editorial status.


Quoting the latest draft (n2135), 28.7 [c.math]:

The added signatures are:

long abs(long); // labs()
long abs(long long); // llabs()

Shouldn't abs(long long) have long long as return type?

Proposed resolution:

Change 28.7 [c.math]:

long long abs(long long); // llabs()


Had already been fixed in the WP by the time the LWG reviewed this.