diff options
Diffstat (limited to 'tests/lib/test_graph.c')
| -rw-r--r-- | tests/lib/test_graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/test_graph.c b/tests/lib/test_graph.c index f21f8b793c..2801c48bc5 100644 --- a/tests/lib/test_graph.c +++ b/tests/lib/test_graph.c @@ -46,7 +46,7 @@ int main(int argc, char **argv) /* create vertices */ for (unsigned int i = 0; i < NUMNODES; i++) { - snprintf(names[i], sizeof(names[i]), "%d", i); + snprintf(names[i], sizeof(names[i]), "%u", i); gn[i] = graph_new_node(g, names[i], NULL); } |
