pkgsrc/lang/cparser/patches/patch-ac
joerg c96e2c0a32 Update to cparser-0.9.7:
* lots of bugfixes
* add/correct semantic checks
* more/improved warnings
* internal cleanups (introduce entity_t types)
* support more GCC extensions
* improved error recovery
* support more switches for GCC compatibility
* support for libc builtins
* add a manpage
2008-12-17 16:59:19 +00:00

13 lines
376 B
Text

$NetBSD: patch-ac,v 1.1 2008/12/17 16:59:19 joerg Exp $
--- ast.c.orig 2008-12-05 20:43:03.000000000 +0100
+++ ast.c
@@ -206,7 +206,7 @@ static void print_const(const const_expr
#else
fprintf(out, "%.20Lg", val);
#endif
- if (isfinite(val) && truncl(val) == val)
+ if (isfinite(val) && trunc(val) == val)
fputs(".0", out);
} else {
panic("unknown constant");