summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2017-08-06 20:31:59 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2017-08-06 20:31:59 +0000
commit259a8c8e5574d0db4e8b3064e2c06950e3162aa3 (patch)
tree570f11856d33509b031ff7126c775dd6b09fd934 /regress
parent93766fc50072ba145a9ce42fdfd80b260681fcba (diff)
use %Lf for printing long double; silences clang warning
ok kettenis@
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libm/exp/exp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libm/exp/exp.c b/regress/lib/libm/exp/exp.c
index 9f53d5c579b..6ef31379331 100644
--- a/regress/lib/libm/exp/exp.c
+++ b/regress/lib/libm/exp/exp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exp.c,v 1.2 2011/07/09 03:33:07 martynas Exp $ */
+/* $OpenBSD: exp.c,v 1.3 2017/08/06 20:31:58 robert Exp $ */
/* Written by Otto Moerbeek, 2006, Public domain. */
@@ -28,10 +28,10 @@ main(void)
rl = expl(bigl);
if (!isinf(rl))
- errx(1, "exp(bigl) = %f", rl);
+ errx(1, "exp(bigl) = %Lf", rl);
rl = expl(-bigl);
if (rl != 0.0L)
- errx(1, "exp(-bigl) = %f", rl);
+ errx(1, "exp(-bigl) = %Lf", rl);
return (0);
}