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
[UM][iOS] Fix bool variable representation #4862
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please provide a more robust test plan that shows the code working?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
ce26812
to
512fde3
Compare
On older devices (with 32 bit iOS) BOOL type is represented by |
512fde3
to
c0d7815
Compare
@lukmccall Could you also add changelog entry for that? Maybe not specifically for SQLite as I can imagine there are some more issues that might have been solved by this. |
According to objc.h bool variable can be represent as `bool` or `signed char`
c0d7815
to
b1887aa
Compare
Hi @tsapeta , Is it released in SDK-33 as a fix? I facing with this issues on production right now. |
This will go out with SDK 34. |
Why
Resolve #4656
How
BOOL type in objective-c can be represented by
bool
orsigned char
(according to objc.h).We only check if BOOL variables are represented as a
bool
.Test Plan
Test-suits passed on iPhone 5 and 8 simulator.
Also, you can check https://snack.expo.io/@lukaszkosmaty/[sqlite]-ios-fails-to-execute-%22create-table%22 (in particular, it works on iPhone 5).