File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ struct HNodeGroup
64
64
65
65
struct AtomTable
66
66
{
67
- int capacity ;
68
- int count ;
67
+ size_t capacity ;
68
+ size_t count ;
69
69
int last_node_group_avail ;
70
70
#ifndef AVM_NO_SMP
71
71
RWLock * lock ;
@@ -118,10 +118,10 @@ void atom_table_destroy(struct AtomTable *table)
118
118
free (table );
119
119
}
120
120
121
- int atom_table_count (struct AtomTable * table )
121
+ size_t atom_table_count (struct AtomTable * table )
122
122
{
123
123
SMP_RDLOCK (table );
124
- int count = table -> count ;
124
+ size_t count = table -> count ;
125
125
SMP_UNLOCK (table );
126
126
127
127
return count ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ typedef const void *atom_ref_t;
53
53
struct AtomTable * atom_table_new ();
54
54
void atom_table_destroy (struct AtomTable * table );
55
55
56
- int atom_table_count (struct AtomTable * table );
56
+ size_t atom_table_count (struct AtomTable * table );
57
57
58
58
long atom_table_ensure_atom (struct AtomTable * table , AtomString string , enum AtomTableCopyOpt opts );
59
59
Original file line number Diff line number Diff line change @@ -1472,7 +1472,7 @@ COLD_FUNC static void dump(Context *ctx)
1472
1472
1473
1473
fprintf (stderr , "process_count = %zu\n" , process_count );
1474
1474
fprintf (stderr , "ports_count = %zu\n" , ports_count );
1475
- fprintf (stderr , "atoms_count = %d \n" , atom_table_count (glb -> atom_table ));
1475
+ fprintf (stderr , "atoms_count = %zu \n" , atom_table_count (glb -> atom_table ));
1476
1476
fprintf (stderr , "refc_binary_total_size = %zu\n" , refc_binary_total_size (ctx ));
1477
1477
}
1478
1478
fprintf (stderr , "\n\n**End Of Crash Report**\n" );
You can’t perform that action at this time.
0 commit comments