Merge pull request #121 from lanhy/patch-3

Update tars2cpp.cpp
This commit is contained in:
ruanshudong 2020-09-13 14:26:48 +08:00 committed by GitHub
commit ff4b89777f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -568,7 +568,7 @@ string Tars2Cpp::tostrBuiltin(const BuiltinPtr& pPtr) const
s = _namespace + "::Char";
break;
case Builtin::KindShort:
//为了兼容java无unsigned, 编结码时把tars问件中 unsigned char 对应到short
//为了兼容java无unsigned, 编解码时把tars文件中 unsigned char 对应到short
//c++中需要还原回来
s = (pPtr->isUnsigned() ? _namespace + "::UInt8" : _namespace + "::Short");
break;