Pkgsrc changes: o Add portability to the various mips-based NetBSD ports. The self-tests even complete without any unexpected failures.
15 lines
748 B
Text
15 lines
748 B
Text
$NetBSD: patch-ag,v 1.1 2009/05/26 12:27:12 he Exp $
|
|
|
|
The %Lf printf format expects "long double", so cast args accordingly.
|
|
|
|
--- testsuite/libffi.call/float2.c.orig 2008-01-29 16:15:20.000000000 +0100
|
|
+++ testsuite/libffi.call/float2.c
|
|
@@ -44,7 +44,7 @@ int main (void)
|
|
/* This is ifdef'd out for now. long double support under SunOS/gcc
|
|
is pretty much non-existent. You'll get the odd bus error in library
|
|
routines like printf(). */
|
|
- printf ("%Lf, %Lf, %Lf, %Lf\n", ld, ldblit(f), ld - ldblit(f), LDBL_EPSILON);
|
|
+ printf ("%Lf, %Lf, %Lf, %Lf\n", (long double)ld, (long double)ldblit(f), (long double)(ld - ldblit(f)), (long double)LDBL_EPSILON);
|
|
#endif
|
|
|
|
/* These are not always the same!! Check for a reasonable delta */
|