X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/6c50dc9249a1abaee3d737a499833718be2e6e0a..b73d1009d4a3494951c129e49f50f8b4c795deb1:/src/llerror.c diff --git a/src/llerror.c b/src/llerror.c index 0560920..4f108c4 100644 --- a/src/llerror.c +++ b/src/llerror.c @@ -30,7 +30,7 @@ # include "splintMacros.nf" # include # include -# include "llbasic.h" +# include "basic.h" # include "llmain.h" # include "cpperror.h" # include "Headers/version.h" /* Visual C++ finds a different version.h on some path! */ @@ -928,7 +928,22 @@ xllgenformattypeerror (char *srcFile, int srcLine, { if (!context_suppressFlagMsg (FLG_FORMATTYPE, fl)) { - return llgentypeerroraux (srcFile, srcLine, FLG_FORMATTYPE, t1, e1, t2, e2, s, fl); + if (ctype_isInt (t1) + && ctype_isNumAbstract (t2)) + { + if (!context_suppressFlagMsg (FLG_NUMABSTRACTPRINT, fl)) + { + return llgentypeerroraux (srcFile, srcLine, FLG_NUMABSTRACTPRINT, t1, e1, t2, e2, s, fl); + } + else + { + return FALSE; + } + } + else + { + return llgentypeerroraux (srcFile, srcLine, FLG_FORMATTYPE, t1, e1, t2, e2, s, fl); + } } else {