diff options
author | rbuj <[email protected]> | 2020-07-15 16:59:20 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-08-11 13:35:32 +0200 |
commit | 480394cdee90346d4fba01e113c007cd5771fa80 (patch) | |
tree | e238c8fa4384d55febf19602111a15725bc6e709 /netspeed | |
parent | 2412123fbcb1b766aec81cb3cf4c93a3c6c4ed84 (diff) | |
download | mate-applets-480394cdee90346d4fba01e113c007cd5771fa80.tar.bz2 mate-applets-480394cdee90346d4fba01e113c007cd5771fa80.tar.xz |
Remove -Wtype-limits warnings
Diffstat (limited to 'netspeed')
-rw-r--r-- | netspeed/src/netspeed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c index 0fdcc3c0..e692d7da 100644 --- a/netspeed/src/netspeed.c +++ b/netspeed/src/netspeed.c @@ -380,7 +380,7 @@ update_quality_icon(MateNetspeedApplet *applet) q = (applet->devinfo->qual); q /= 25; - q = CLAMP(q, 0, 3); /* q out of range would crash when accessing qual_surfaces[q] */ + q = MIN (q, 3); /* q out of range would crash when accessing qual_surfaces[q] */ gtk_image_set_from_surface (GTK_IMAGE(applet->qual_pix), applet->qual_surfaces[q]); } |