]> git.saurik.com Git - apple/libc.git/blobdiff - regex/TRE/lib/tre-mem.c
Libc-1439.100.3.tar.gz
[apple/libc.git] / regex / TRE / lib / tre-mem.c
index b5fb2768d292a26b2ec3a9ab1669e59e9bb785b0..21aa79323d9aa54ef486fee0beccf75ec5c6e967 100644 (file)
@@ -106,12 +106,12 @@ tre_mem_alloc_impl(tre_mem_t mem, int provided, void *provided_block,
        }
       else
        {
-         int block_size;
+         size_t block_size;
          if (size * 8 > TRE_MEM_BLOCK_SIZE)
            block_size = size * 8;
          else
            block_size = TRE_MEM_BLOCK_SIZE;
-         DPRINT(("tre_mem_alloc: allocating new %d byte block\n",
+         DPRINT(("tre_mem_alloc: allocating new %ld byte block\n",
                  block_size));
          l = xmalloc(sizeof(*l));
          if (l == NULL)