]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - ppdc/ppdc-array.cxx
Don't generate certificates that expire on Feb 29th (Issue #5643)
[thirdparty/cups.git] / ppdc / ppdc-array.cxx
index bfc1dcf95e119e3e5b30d4c05c64568ee36a04aa..3a0cab33be48535b3877b7c3c51674ca9d0475fd 100644 (file)
@@ -1,7 +1,7 @@
 //
 // Array class for the CUPS PPD Compiler.
 //
-// Copyright 2007-2014 by Apple Inc.
+// Copyright 2007-2019 by Apple Inc.
 // Copyright 2002-2005 by Easy Software Products.
 //
 // Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
@@ -35,7 +35,7 @@ ppdcArray::ppdcArray(ppdcArray *a)
 
       memcpy(data, a->data, (size_t)count * sizeof(ppdcShared *));
 
-      for (int i = 0; i < count; i ++)
+      for (size_t i = 0; i < count; i ++)
         data[i]->retain();
     }
     else
@@ -60,7 +60,7 @@ ppdcArray::~ppdcArray()
 {
   PPDC_DELETE;
 
-  for (int i = 0; i < count; i ++)
+  for (size_t i = 0; i < count; i ++)
     data[i]->release();
 
   if (alloc)
@@ -130,7 +130,7 @@ ppdcArray::next()
 void
 ppdcArray::remove(ppdcShared *d)               // I - Data element
 {
-  int  i;                                      // Looping var
+  size_t       i;                              // Looping var
 
 
   for (i = 0; i < count; i ++)