]> andersk Git - splint.git/blobdiff - src/general.c
Fixed line numbering when multi-line macro parameters are used.
[splint.git] / src / general.c
index dd72788fd32809088471c8aafd635c546e8682b4..e621870367708b932b91aafda998c3f3a047b3fd 100644 (file)
@@ -113,8 +113,15 @@ static long unsigned size_toLongUnsigned (size_t x)
     {
       if (size == 0)
        {
-         llbug (message ("Zero allocation at %q.",
-                         fileloc_unparseRaw (cstring_fromChars (name), line)));
+         llcontbug (message ("Zero allocation at %q.",
+                             fileloc_unparseRaw (cstring_fromChars (name), line)));
+         
+         /* 
+         ** evans 2002-03-01
+         ** Return some allocated storage...hope we get lucky.
+         */
+
+         return dimalloc (16, name, line);
        }
       else
        {
@@ -335,7 +342,7 @@ char *mstring_safePrint (char *s)
 }
 
 extern
-char *mstring_create (int n)
+char *mstring_create (size_t n)
 {
   char *s;
 
This page took 0.031598 seconds and 4 git commands to generate.