diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2010-01-21 11:47:15 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2010-01-21 11:47:15 -0330 |
commit | e14d63eca8dfce48d55049718555d83bb5dd86db (patch) | |
tree | bdd53c0da83ae72b9e38680435c6089a8be2620f /cpp/src/Slice/PythonUtil.cpp | |
parent | Fixes for bug 4616 & 4641 (diff) | |
download | ice-e14d63eca8dfce48d55049718555d83bb5dd86db.tar.bz2 ice-e14d63eca8dfce48d55049718555d83bb5dd86db.tar.xz ice-e14d63eca8dfce48d55049718555d83bb5dd86db.zip |
Bug 4642 - slice2py hang
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r-- | cpp/src/Slice/PythonUtil.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index c9b4d7af4c2..f4e23f6493c 100644 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -1999,10 +1999,11 @@ Slice::Python::CodeVisitor::editComment(const string& comment) if(pos != string::npos) { string::size_type endpos = result.find('>', pos); - if(endpos != string::npos) + if(endpos == string::npos) { - result.erase(pos, endpos - pos + 1); + break; } + result.erase(pos, endpos - pos + 1); } } while(pos != string::npos); |