diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2017-08-06 20:31:59 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2017-08-06 20:31:59 +0000 |
commit | 259a8c8e5574d0db4e8b3064e2c06950e3162aa3 (patch) | |
tree | 570f11856d33509b031ff7126c775dd6b09fd934 /regress | |
parent | 93766fc50072ba145a9ce42fdfd80b260681fcba (diff) |
use %Lf for printing long double; silences clang warning
ok kettenis@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libm/exp/exp.c | 6 |
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); } |