diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2011-05-31 21:13:45 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2011-05-31 21:13:45 +0000 |
commit | 9878f266fa9fc9847985a24e720a0fc315b5a58f (patch) | |
tree | 1728f9e5971337f04727bf2a0b3cd6c35fddad34 /lib/libm | |
parent | 25a7d02739e0e67ab83a7b44e25fbf1ee6fa4c99 (diff) |
Call the single, not double-precision version of copysign for the
float arguments.
Diffstat (limited to 'lib/libm')
-rw-r--r-- | lib/libm/src/s_cprojf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libm/src/s_cprojf.c b/lib/libm/src/s_cprojf.c index 74df084220a..416a05c2921 100644 --- a/lib/libm/src/s_cprojf.c +++ b/lib/libm/src/s_cprojf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: s_cprojf.c,v 1.2 2010/07/19 00:04:07 guenther Exp $ */ +/* $OpenBSD: s_cprojf.c,v 1.3 2011/05/31 21:13:44 martynas Exp $ */ /* * Copyright (c) 2008 Martynas Venckus <martynas@openbsd.org> * @@ -25,7 +25,7 @@ cprojf(float complex z) if (isinf(__real__ z) || isinf(__imag__ z)) { __real__ res = INFINITY; - __imag__ res = copysign(0.0, __imag__ z); + __imag__ res = copysignf(0.0, __imag__ z); } else { res = z; } |