THRIFT-365. html: HTML compiler infinite loop
authorBryan Duxbury <bryanduxbury@apache.org>
Tue, 17 Mar 2009 21:55:36 +0000 (21:55 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Tue, 17 Mar 2009 21:55:36 +0000 (21:55 +0000)
Trivial fix for 64-bit systems.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@755413 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_html_generator.cc

index 6e0fdba..6b8bcc1 100644 (file)
@@ -317,7 +317,7 @@ void t_html_generator::generate_css() {
 void t_html_generator::print_doc(t_doc* tdoc) {
   if (tdoc->has_doc()) {
     string doc = tdoc->get_doc();
-    unsigned int index;
+    size_t index;
     while ((index = doc.find_first_of("\r\n")) != string::npos) {
       if (index == 0) {
        f_out_ << "<p/>" << endl;