handle LDOUBLE

This commit is contained in:
christos 2014-04-18 00:20:37 +00:00
parent 282ceca326
commit a46cc2f317
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: decl.c,v 1.58 2013/12/15 03:43:37 christos Exp $ */ /* $NetBSD: decl.c,v 1.59 2014/04/18 00:20:37 christos Exp $ */
/* /*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@ -38,7 +38,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint) #if defined(__RCSID) && !defined(lint)
__RCSID("$NetBSD: decl.c,v 1.58 2013/12/15 03:43:37 christos Exp $"); __RCSID("$NetBSD: decl.c,v 1.59 2014/04/18 00:20:37 christos Exp $");
#endif #endif
#include <sys/param.h> #include <sys/param.h>
@ -757,6 +757,7 @@ deftyp(void)
break; break;
case DOUBLE: case DOUBLE:
if (l == LONG) { if (l == LONG) {
case LDOUBLE:
l = NOTSPEC; l = NOTSPEC;
t = LDOUBLE; t = LDOUBLE;
if (tflag) if (tflag)
@ -778,7 +779,7 @@ deftyp(void)
case LCOMPLEX: case LCOMPLEX:
break; break;
default: default:
LERROR("deftyp()"); LERROR("deftyp(%s)", basictyname(t));
} }
if (t != INT && t != CHAR && (s != NOTSPEC || l != NOTSPEC)) { if (t != INT && t != CHAR && (s != NOTSPEC || l != NOTSPEC)) {
dcs->d_terr = 1; dcs->d_terr = 1;