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

Fix Boolean datatype #23

Merged
merged 1 commit into from
Mar 30, 2020
Merged

Fix Boolean datatype #23

merged 1 commit into from
Mar 30, 2020

Conversation

Hoops
Copy link
Contributor

@Hoops Hoops commented Mar 29, 2020

So the Lua FFI seems to already take care of converting C bool to a Lua boolean. Comparing it with 1 means that Boolean values always end up false.

Just remove the comparison and this fixes it.

Fixes #19

So the Lua FFI seems to already take care of converting
C `bool` to a Lua `boolean`. Comparing it with 1 means that
Boolean values always end up `false`.

Just remove the comparison and this fixes it.
@anjia0532
Copy link
Owner

LGTM

@anjia0532 anjia0532 merged commit 4ef2a27 into anjia0532:master Mar 30, 2020
@Hoops Hoops deleted the fix-boolean-type branch March 30, 2020 19:56
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

Successfully merging this pull request may close these issues.

Error at determine a boolean value
2 participants