]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/tools/build/src/engine/modules/property-set.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / tools / build / src / engine / modules / property-set.cpp
index 1f3394107541e2fe0a0d008b4ebebb7c6ba9d1d4..b5a11abcf34988cbf98d3f84ee6114136f5c2179 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * Copyright 2013 Steven Watanabe
  * Distributed under the Boost Software License, Version 1.0.
- * (See accompanying file LICENSE_1_0.txt or copy at
- * http://www.boost.org/LICENSE_1_0.txt)
+ * (See accompanying file LICENSE.txt or copy at
+ * https://www.bfgroup.xyz/b2/LICENSE.txt)
  */
 
 #include "../object.h"
@@ -26,8 +26,8 @@ struct ps_map_entry
 struct ps_map
 {
     struct ps_map_entry * * table;
-    size_t table_size;
-    size_t num_elems;
+    int32_t table_size;
+    int32_t num_elems;
 };
 
 static unsigned list_hash(LIST * key)
@@ -63,10 +63,10 @@ static int list_equal( LIST * lhs, LIST * rhs )
 
 static void ps_map_init( struct ps_map * map )
 {
-    size_t i;
+    int32_t i;
     map->table_size = 2;
     map->num_elems = 0;
-    map->table = (struct ps_map_entry * *)BJAM_MALLOC( map->table_size * sizeof( struct ps_map_entry * ) );
+    map->table = (struct ps_map_entry * *)BJAM_MALLOC( size_t(map->table_size) * sizeof( struct ps_map_entry * ) );
     for ( i = 0; i < map->table_size; ++i )
     {
         map->table[ i ] = NULL;
@@ -75,7 +75,7 @@ static void ps_map_init( struct ps_map * map )
 
 static void ps_map_destroy( struct ps_map * map )
 {
-    size_t i;
+    int32_t i;
     for ( i = 0; i < map->table_size; ++i )
     {
         struct ps_map_entry * pos;
@@ -93,8 +93,8 @@ static void ps_map_destroy( struct ps_map * map )
 static void ps_map_rehash( struct ps_map * map )
 {
     struct ps_map old = *map;
-    size_t i;
-    map->table = (struct ps_map_entry * *)BJAM_MALLOC( map->table_size * 2 * sizeof( struct ps_map_entry * ) );
+    int32_t i;
+    map->table = (struct ps_map_entry * *)BJAM_MALLOC( size_t(map->table_size) * 2 * sizeof( struct ps_map_entry * ) );
     map->table_size *= 2;
     for ( i = 0; i < map->table_size; ++i )
     {