]> andersk Git - splint.git/commitdiff
Fixed bug in uentry_makeVarFunction reported by Alexander Mai.
authorevans1629 <evans1629>
Mon, 31 Dec 2001 04:53:58 +0000 (04:53 +0000)
committerevans1629 <evans1629>
Mon, 31 Dec 2001 04:53:58 +0000 (04:53 +0000)
src/uentry.c

index 27ccb47843e4bcb900f80edaa61dbdffd09ade9f..a89412c8e5bf08071f89d3a5e4cd5b813eb90968 100644 (file)
@@ -3360,10 +3360,11 @@ void uentry_makeVarFunction (uentry ue)
   llassert (uentry_isVariable (ue));
   oldInfo = ue->info->var;
 
-  llassert (ctype_isUnknown (ue->utype) || ctype_isFunction (ue->utype));
+  DPRINTF (("ue: %s", uentry_unparseFull (ue)));
+  llassert (ctype_isUnknown (ue->utype) || ctype_isFunction (ctype_realType (ue->utype)));
 
   /*
-  ** expanded macro is marked used (until I write a pre-processor)
+  ** expanded macro is marked used 
   */
 
   ue->used = ue->used || (oldInfo->kind == VKEXPMACRO);
@@ -8227,7 +8228,7 @@ checkFunctionConformance (/*@unique@*/ /*@notnull@*/ uentry old,
   uentryList oldParams  = uentry_getParams (old);
   uentryList newParams  = uentry_getParams (unew);
   ctype      newType    = unew->utype;
-  ctype      oldType    = old->utype;
+  ctype      oldType    = ctype_realType (old->utype);
   ctype      oldRetType = ctype_unknown;
   ctype      newRetType = ctype_unknown;
 
@@ -8249,14 +8250,12 @@ checkFunctionConformance (/*@unique@*/ /*@notnull@*/ uentry old,
   if (ctype_isKnown (oldType))
     {
       llassert (ctype_isFunction (oldType));
-
       oldRetType = ctype_getReturnType (oldType);
     }
 
   if (ctype_isKnown (newType))
     {
       llassert (ctype_isFunction (newType));
-
       newRetType = ctype_getReturnType (newType);
     }
 
This page took 0.051128 seconds and 5 git commands to generate.