diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Slice/CPlusPlusUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp index 347e95afa34..7837cce0260 100644 --- a/cpp/src/Slice/CPlusPlusUtil.cpp +++ b/cpp/src/Slice/CPlusPlusUtil.cpp @@ -860,11 +860,11 @@ Slice::writeMarshalUnmarshalCode(Output& out, const TypePtr& type, const string& string tmpParam = "__"; if(fixedParam.find("(*") == 0) { - tmpParam += fixedParam.substr(2, fixedParam.size() - 3); + tmpParam += fixedParam.substr(2, fixedParam.length() - 2); } else if(fixedParam.find("[i]") != string::npos) { - tmpParam += fixedParam.substr(0, fixedParam.find("[i]")); + tmpParam += fixedParam.substr(0, fixedParam.length() - 3); } else { |