summaryrefslogtreecommitdiff
blob: e7f3a7328285260d3d841339a9e3f0e53fc2df83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Make sure we type the cast properly.

http://bugs.gentoo.org/show_bug.cgi?id=63773

--- src/story_screen.cxx
+++ src/story_screen.cxx
@@ -142,7 +142,7 @@
 
   if (!page_displayed_completly)
     {
-      unsigned int len = static_cast<unsigned int>(20.0f * time_passed);
+      size_t len = static_cast<size_t>(20.0f * time_passed);
       display_text = current_page.text.substr(0, Math::min(current_page.text.length(), len));
 
       if (current_page.text.length() < len)