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

stdbool test #442

Closed
Konstantin8105 opened this issue Dec 11, 2017 · 1 comment
Closed

stdbool test #442

Konstantin8105 opened this issue Dec 11, 2017 · 1 comment

Comments

@Konstantin8105
Copy link
Contributor

#include <stdbool.h>
bool *board;
void setFieldVal(coord pos, bool val) {
    *(board + pos.y*sizeX + pos.x) = val; /// <-- that part lost
}

Error

func setFieldVal(pos coord, val bool) {
}
// Error (BinaryOperator): 114: int
@Konstantin8105
Copy link
Contributor Author

Konstantin8105 commented Dec 11, 2017

Suppose, bool for stdbool created like Go bool, but not like signed int and this is mistake.

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