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

cMask::Init possible copy/paste issue #55

Closed
tico-tico opened this issue Sep 6, 2017 · 1 comment
Closed

cMask::Init possible copy/paste issue #55

tico-tico opened this issue Sep 6, 2017 · 1 comment

Comments

@tico-tico
Copy link
Contributor

While refactoring i found this stuff:

    outpost_map[WC] = bb_rel_rank[WC][RANK_4] | bb_rel_rank[WC][RANK_5] | bb_rel_rank[WC][RANK_6];
    outpost_map[BC] = bb_rel_rank[BC][RANK_4] | bb_rel_rank[BC][RANK_5] | bb_rel_rank[BC][RANK_6];
    outpost_map[WC] = outpost_map[WC] & bbNotA;
    outpost_map[WC] = outpost_map[WC] & bbNotH;
    outpost_map[BC] = outpost_map[WC] & bbNotA;
    outpost_map[BC] = outpost_map[WC] & bbNotH;

take a look at the last two lines, don't you think that this should be better:

    outpost_map[BC] = outpost_map[BC] & bbNotA;
    outpost_map[BC] = outpost_map[BC] & bbNotH;

If you think that it's true, please just reply here, don't change the code, 'coz as i said i'm in the process of refactoring of this.

@nescitus
Copy link
Owner

nescitus commented Sep 7, 2017 via email

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

2 participants