aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2012-07-16 19:56:00 -0700
committerPaul Eggert2012-07-16 19:56:00 -0700
commit7c26cf3ccd4ea49d42c2b3d21e59330143085f17 (patch)
tree541a7e143c072733fb518c498e4d61085c37eb41 /src
parent5dad233cb8553df9b37da260dd9cc350f781b2df (diff)
downloademacs-7c26cf3ccd4ea49d42c2b3d21e59330143085f17.tar.gz
emacs-7c26cf3ccd4ea49d42c2b3d21e59330143085f17.zip
* floatfns.c (Fabs): Do not wrap fabs inside IN_FLOAT.
Unlike the other wrapped functions, fabs has an unspecified effect on errno. Fixes: debbugs:11913
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/floatfns.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6c994369610..9949c65ba71 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12012-07-17 Paul Eggert <eggert@cs.ucla.edu>
2
3 * floatfns.c (Fabs): Do not wrap fabs inside IN_FLOAT (Bug#11913).
4 Unlike the other wrapped functions, fabs has an unspecified
5 effect on errno.
6
12012-07-16 Jan Djärv <jan.h.d@swipnet.se> 72012-07-16 Jan Djärv <jan.h.d@swipnet.se>
2 8
3 * nsterm.m (keyDown): Interpret flags without left/right bits 9 * nsterm.m (keyDown): Interpret flags without left/right bits
diff --git a/src/floatfns.c b/src/floatfns.c
index eaa1b32eb17..cad071f1e15 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -664,7 +664,7 @@ DEFUN ("abs", Fabs, Sabs, 1, 1, 0,
664 CHECK_NUMBER_OR_FLOAT (arg); 664 CHECK_NUMBER_OR_FLOAT (arg);
665 665
666 if (FLOATP (arg)) 666 if (FLOATP (arg))
667 IN_FLOAT (arg = make_float (fabs (XFLOAT_DATA (arg))), "abs", arg); 667 arg = make_float (fabs (XFLOAT_DATA (arg)));
668 else if (XINT (arg) < 0) 668 else if (XINT (arg) < 0)
669 XSETINT (arg, - XINT (arg)); 669 XSETINT (arg, - XINT (arg));
670 670