From 259a8c8e5574d0db4e8b3064e2c06950e3162aa3 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sun, 6 Aug 2017 20:31:59 +0000 Subject: use %Lf for printing long double; silences clang warning ok kettenis@ --- regress/lib/libm/exp/exp.c | 6 +++--- 1 file 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); } -- cgit v1.2.3