diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-11-29 08:49:56 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-11-29 08:49:56 +0000 |
| commit | 312aa3a3c0ed8cec53907048ea9590e09c02f460 (patch) | |
| tree | a554df14e980c0db80f6dfffde97f460f829c8c2 | |
| parent | c146000f27482d3b62f2188b764f40b52fc25a9b (diff) | |
Fix compile error with Sun C++ compiler.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/fl_draw.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fl_draw.cxx b/src/fl_draw.cxx index 2daaab077..637744c4f 100644 --- a/src/fl_draw.cxx +++ b/src/fl_draw.cxx @@ -310,7 +310,7 @@ void fl_measure(const char* str, int& w, int& h, int draw_symbols) { for (p = str, lines=0; p;) { e = expand(p, buf, w - symtotal, buflen, width, w != 0, draw_symbols); - if (int(ceil(width)) > W) W = int(ceil(width)); + if ((int)ceil(width) > W) W = (int)ceil(width); lines++; if (!*e || (*e == '@' && draw_symbols)) break; p = e; |
