diff options
author | bigbear <ns@bigbear.dk> | 2024-02-08 02:57:20 +0100 |
---|---|---|
committer | bigbear <ns@bigbear.dk> | 2024-02-08 19:52:53 +0100 |
commit | 08e01f35f747bfe30a40ea99cbcd63ad7fb94e7e (patch) | |
tree | a727faeb3ffb38d523b0700a63e6e537d295a152 /deps/uber-graph/uber-scatter.c | |
parent | 4c249cfdc742d162fdb384fba61236cada3d9f29 (diff) |
FIX GCC Warnings
Diffstat (limited to 'deps/uber-graph/uber-scatter.c')
-rw-r--r-- | deps/uber-graph/uber-scatter.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/uber-graph/uber-scatter.c b/deps/uber-graph/uber-scatter.c index 1889cfa8..56c7b00d 100644 --- a/deps/uber-graph/uber-scatter.c +++ b/deps/uber-graph/uber-scatter.c @@ -43,7 +43,7 @@ struct _UberScatterPrivate { GRing *raw_data; UberRange range; - gint stride; + guint stride; GdkRGBA fg_color; gboolean fg_color_set; UberScatterFunc func; @@ -173,8 +173,8 @@ uber_scatter_render (UberGraph *graph, /* IN */ GArray *ar; gdouble x; gdouble y; - gint i; - gint j; + guint i; + guint j; g_return_if_fail(UBER_IS_SCATTER(graph)); @@ -194,7 +194,7 @@ uber_scatter_render (UberGraph *graph, /* IN */ * Retrieve the current data set. */ for (i = 0; i < priv->raw_data->len; i++) { - if (!(ar = g_ring_get_index(priv->raw_data, GArray*, i))) { + if (!(ar = g_ring_get_index(priv->raw_data, GArray*, (int)i))) { continue; } x = epoch - (i * each) - (each / 2.); @@ -244,7 +244,7 @@ uber_scatter_render_fast (UberGraph *graph, /* IN */ GArray *ar; gdouble x; gdouble y; - gint i; + guint i; g_return_if_fail(UBER_IS_SCATTER(graph)); |