Update tars2cpp.cpp

修改注释错误
This commit is contained in:
lanhy 2020-09-08 21:40:50 +08:00 committed by GitHub
parent 465332a9c9
commit a0c8188428
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;