Skip to content

Commit

Permalink
xml/export/v1/memory: change a variable to signed int
Browse files Browse the repository at this point in the history
weight() returns a signed int, so assert is better if we stay signed.

CID#1445010

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Jul 11, 2019
1 parent a4a6466 commit 68be0c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hwloc/topology-xml.c
Expand Up @@ -2365,7 +2365,7 @@ static unsigned
hwloc__xml_v1export_object_list_numanodes(hwloc_obj_t obj, hwloc_obj_t *first_p, hwloc_obj_t **nodes_p)
{
hwloc_obj_t *nodes, cur;
unsigned nr;
int nr;

if (!obj->memory_first_child) {
*first_p = NULL;
Expand Down

0 comments on commit 68be0c6

Please sign in to comment.