Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit b94ffe2

Browse files
committed
修复:json.get使用了不正确的类型导致编译器警告;
1 parent df323ef commit b94ffe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/defs/messages/FaceMessage.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Cyan
3131
{
3232
if (json["type"].is_null() || json["type"].get<string>() != this->GetType())
3333
throw std::runtime_error("给定的json不正确");
34-
faceId_ = json["faceId"].get<int64_t>();
34+
faceId_ = json["faceId"].get<int>();
3535
name_ = json["name"].get<string>();
3636
return true;
3737
}

0 commit comments

Comments
 (0)