cast size_t to int to avoid warning -- Florian octo Forster
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 25 Mar 2008 22:57:42 +0000 (22:57 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 25 Mar 2008 22:57:42 +0000 (22:57 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1317 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_graph.c

index 6e1154a..0e84786 100644 (file)
@@ -4084,7 +4084,7 @@ void rrd_graph_options(
                         if (size > 0) {
                             im->text_prop[propidx].size = size;
                         }
-                        if (strlen(prop) > end) {
+                        if ((int) strlen(prop) > end) {
                             if (prop[end] == ':') {
                                 strncpy(im->text_prop[propidx].font,
                                         prop + end + 1, 255);