]> git.saurik.com Git - wxWidgets.git/commitdiff
fix MSVC /Wp64 warning about size_t to int conversion (closes #10068)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Oct 2008 17:14:12 +0000 (17:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Oct 2008 17:14:12 +0000 (17:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/richtext/richtextbuffer.h

index c32bfc832932cc18cfb5de6c7a9b5bc8877cf6e1..a88985d6e05661175a8e517f815547166255bb65 100644 (file)
@@ -705,7 +705,7 @@ public:
     virtual int GetParagraphLength(long paragraphNumber) const;
 
     /// Get the number of paragraphs
-    virtual int GetParagraphCount() const { return GetChildCount(); }
+    virtual int GetParagraphCount() const { return static_cast<int>(GetChildCount()); }
 
     /// Get the number of visible lines
     virtual int GetLineCount() const;