fix #13790; ptr char (+friends) should not implicitly convert to cstring (#20761)

* fix =#13790 ptr char (+friends) should not implicitly convert to cstring

* Apply suggestions from code review

* first round; compiles on windows

* nimPreviewSlimSystem

* conversion is unsafe, cast needed

* fixes more tests

* fixes asyncnet

* another try another error

* last one

* true

* one more

* why bugs didn't show at once

* add `nimPreviewCstringConversion` switch

* typo

Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
This commit is contained in:
ringabout 2022-11-24 14:49:23 +08:00 • committed by GitHub
commit 27a38a9fce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 12 deletions

View file

@ -1,3 +1,4 @@
switch("styleCheck", "usages")
switch("styleCheck", "error")
switch("define", "nimPreviewSlimSystem")
switch("define", "nimPreviewSlimSystem")
switch("define", "nimPreviewCstringConversion")

View file

@ -1 +1,2 @@
--d:nimPreviewSlimSystem
--d:nimPreviewSlimSystem
--d:nimPreviewCstringConversion