diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-02-01 20:05:24 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-02-01 20:05:24 +0000 |
commit | 9da6736785e775b1b73838cdb2b5d6ab3cb6fc0a (patch) | |
tree | 72bd5b6406cfc0e3222f992d91c7633c27bbb9b5 /cpp/src/Slice/CPlusPlusUtil.cpp | |
parent | minor fixes (diff) | |
download | ice-9da6736785e775b1b73838cdb2b5d6ab3cb6fc0a.tar.bz2 ice-9da6736785e775b1b73838cdb2b5d6ab3cb6fc0a.tar.xz ice-9da6736785e775b1b73838cdb2b5d6ab3cb6fc0a.zip |
Fixed substr error
Diffstat (limited to 'cpp/src/Slice/CPlusPlusUtil.cpp')
-rw-r--r-- | cpp/src/Slice/CPlusPlusUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp index 524cf37ea0b..347e95afa34 100644 --- a/cpp/src/Slice/CPlusPlusUtil.cpp +++ b/cpp/src/Slice/CPlusPlusUtil.cpp @@ -864,7 +864,7 @@ Slice::writeMarshalUnmarshalCode(Output& out, const TypePtr& type, const string& } else if(fixedParam.find("[i]") != string::npos) { - tmpParam += fixedParam.substr(0, fixedParam.size() - 5); + tmpParam += fixedParam.substr(0, fixedParam.find("[i]")); } else { |