diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-04 20:33:22 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-07-04 21:07:45 -0400 |
commit | 7a6b35790865bd40009eef58d0a4d504b2fce0c8 (patch) | |
tree | a1e288013c3a141abc174124def71070d4d13599 | |
parent | 9b4f070bfb7cbaad22b03d2d38b338e82cbf80c0 (diff) | |
download | xorg-lib-libXaw-7a6b35790865bd40009eef58d0a4d504b2fce0c8.tar.gz |
fix some type/conversion warnings (no object change)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r-- | src/StripChart.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/StripChart.c b/src/StripChart.c index 5e51b56..87d0041 100644 --- a/src/StripChart.c +++ b/src/StripChart.c @@ -200,6 +200,13 @@ StripChartClassRec stripChartClassRec = { /* simple */ { XtInheritChangeSensitive, /* change_sensitive */ +#ifndef OLDXAW + NULL +#endif + }, + /* strip_chart_class */ + { + NULL } }; @@ -320,7 +327,7 @@ draw_it(XtPointer client_data, XtIntervalId *id) client_data); if ((w->strip_chart.interval >= XtWidth(w)) || - (w->strip_chart.interval >= NUM_VALUEDATA(w))) + ((Cardinal)w->strip_chart.interval >= NUM_VALUEDATA(w))) MoveChart((StripChartWidget)w, True); /* Get the value, stash the point and draw corresponding line */ @@ -413,7 +420,7 @@ repaint_window(StripChartWidget w, int left, int width) if (next < ++width) width = next; - if (width > NUM_VALUEDATA(w)) + if ((Cardinal)width > NUM_VALUEDATA(w)) width = NUM_VALUEDATA(w); /* Draw data point lines */ |