Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无符号64位和0比较编译不过 #139

Open
luyuancpp opened this issue Sep 18, 2021 · 0 comments
Open

无符号64位和0比较编译不过 #139

luyuancpp opened this issue Sep 18, 2021 · 0 comments

Comments

@luyuancpp
Copy link

给代码
virtual EBTStatus update_impl(Agent* pAgent, EBTStatus childStatus)
{
BEHAVIAC_UNUSED_VAR(pAgent);
BEHAVIAC_UNUSED_VAR(childStatus);
unsigned long long& opl = ((ClientAI*)pAgent)->player_id;
unsigned long opr = 0;
bool op = PrivateDetails::Equal(opl, opr);//一个是ull 一个是ul 我想两边比较应该和player_id 类型一直,策划经常会拿一个玩家id 去比较
return op ? BT_SUCCESS : BT_FAILURE;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant