diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-05-21 23:25:52 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-05-21 23:25:52 -0700 |
commit | e21cdb67718a5d203372fd0c425e8be3e1d273f3 (patch) | |
tree | 20cf1939da8a06adb67b61a5b3d6c87fc50d7d8e | |
parent | 9b8660a62e3c5c9ad8f70c0d56ccaac7c4a531fc (diff) |
modules/voronoi: silence warning about fmt mismatch
n_cells is a size_t, use %zu
clang complained, gcc doesn't, huh
-rw-r--r-- | src/modules/voronoi/voronoi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/voronoi/voronoi.c b/src/modules/voronoi/voronoi.c index 3e6a5e3..0a9ba70 100644 --- a/src/modules/voronoi/voronoi.c +++ b/src/modules/voronoi/voronoi.c @@ -396,7 +396,7 @@ static int voronoi_setup(const til_settings_t *settings, til_setting_t **res_set if (!setup) return -ENOMEM; - sscanf(n_cells, "%u", &setup->n_cells); + sscanf(n_cells, "%zu", &setup->n_cells); if (!strcasecmp(randomize, "on")) setup->randomize = 1; |