]> andersk Git - splint.git/blobdiff - src/sort.c
Fixed previously ignored splintme warnings in loopHeuristics.c
[splint.git] / src / sort.c
index bee27a78e9b7f57ab870cc198bf5599773b52c9b..119673872b89ea0c845ee5f2af43c2c3410a68d8 100644 (file)
@@ -1,6 +1,6 @@
 /*
 ** Splint - annotation-assisted static program checker
-** Copyright (C) 1994-2002 University of Virginia,
+** Copyright (C) 1994-2003 University of Virginia,
 **         Massachusetts Institute of Technology
 **
 ** This program is free software; you can redistribute it and/or modify it
@@ -677,18 +677,16 @@ sort_makePtr (ltoken t, sort baseSort)
 }
 
 sort
-sort_makePtrN (sort s, int pointers)
+sort_makePtrN (sort s, pointers p)
 {
-  llassert (pointers >= 0);
-
-  if (pointers == 0)
+  if (pointers_isUndefined (p))
     {
       return s;
     }
   else
     {
       return sort_makePtrN (sort_makePtr (ltoken_undefined, s), 
-                           pointers - 1);
+                           pointers_getRest (p));
     }
 }
 
This page took 0.033201 seconds and 4 git commands to generate.