Commit 44f5ec7
committed
Avoid an explicit cast from
As noted in the `ffi` module docs, passing pointer/length byte strings from
Rust to C++ is easier if we declare them as `*const c_uchar` on the Rust side,
but `const char *` (possibly signed) on the C++ side. This is allowed because
both pointer types are ABI-compatible, regardless of char signedness.*const c_uchar to *const c_char
1 parent 8d0a049 commit 44f5ec7
File tree
2 files changed
+3
-3
lines changed- compiler/rustc_codegen_llvm/src
- back
- llvm
2 files changed
+3
-3
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2438 | 2438 | | |
2439 | 2439 | | |
2440 | 2440 | | |
2441 | | - | |
| 2441 | + | |
2442 | 2442 | | |
2443 | 2443 | | |
2444 | 2444 | | |
| |||
0 commit comments