You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2009/03/17 22:55:37 UTC
svn commit: r755413 -
/incubator/thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc
Author: bryanduxbury
Date: Tue Mar 17 21:55:36 2009
New Revision: 755413
URL: http://svn.apache.org/viewvc?rev=755413&view=rev
Log:
THRIFT-365. html: HTML compiler infinite loop
Trivial fix for 64-bit systems.
Modified:
incubator/thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc
Modified: incubator/thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc?rev=755413&r1=755412&r2=755413&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc (original)
+++ incubator/thrift/trunk/compiler/cpp/src/generate/t_html_generator.cc Tue Mar 17 21:55:36 2009
@@ -317,7 +317,7 @@
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;