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 Issue 22971 - importC: can't initialize unsigned char array with … #13948

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

WalterBright
Copy link
Member

…string literal

I'm not too happy with this, as C is inconsistent about when it allows implicit conversions between char, unsigned char, and signed char. But we'll have to see how it goes.

Once it is merged, I plan to refactor it to make things nicer; this PR tries to minimize change.

@WalterBright WalterBright added the Feature:ImportC Pertaining to ImportC support label Apr 5, 2022
@dlang-bot
Copy link
Contributor

dlang-bot commented Apr 5, 2022

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
22971 normal importC: can't initialize unsigned char array with string literal

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#13948"

@WalterBright WalterBright force-pushed the fix22971 branch 2 times, most recently from 8ec001e to 49298ef Compare April 5, 2022 05:38
@dlang-bot dlang-bot merged commit 8320956 into dlang:master Apr 6, 2022
@WalterBright WalterBright deleted the fix22971 branch April 6, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants