Fix compile error with Sun C++ compiler.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2005-11-29 08:49:56 +00:00
parent c146000f27
commit 312aa3a3c0
+1 -1
View File
@@ -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;