X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftext.cpp;h=e4ec3290ac91ee551931d6444e27f4aeb86d64ef;hb=525351c67a74fc3434fd1fb993bb9fa78b681f1f;hp=5f4095e135b33f65dfcb0fca73b171d19645c761;hpb=900becb7550d179d169e7d049b3aef5e0c9b7758;p=libs%2Fgltk.git diff --git a/source/text.cpp b/source/text.cpp index 5f4095e..e4ec329 100644 --- a/source/text.cpp +++ b/source/text.cpp @@ -40,10 +40,10 @@ void Text::set(const string &t) text=t; lines.clear(); float font_size=style->get_font()->get_default_size(); - unsigned start=0; + string::size_type start=0; while(1) { - unsigned newline=text.find('\n', start); + string::size_type newline=text.find('\n', start); Line line; line.start=start;