make cuchar alias uint8 instead of char (#17738)
This commit is contained in:
parent
8e124da75d
commit
c8b8cb8458
2 changed files with 3 additions and 1 deletions
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
## Changes affecting backward compatibility
|
||||
|
||||
- `cuchar` now aliases `uint8` instead of `char`
|
||||
|
||||
- `repr` now doesn't insert trailing newline; previous behavior was very inconsistent,
|
||||
see #16034. Use `-d:nimLegacyReprWithNewline` for previous behavior.
|
||||
|
||||
|
|
|
|||
|
|
@ -1452,7 +1452,7 @@ type # these work for most platforms:
|
|||
## This is the same as the type `long double` in *C*.
|
||||
## This C type is not supported by Nim's code generator.
|
||||
|
||||
cuchar* {.importc: "unsigned char", nodecl.} = char
|
||||
cuchar* {.importc: "unsigned char", nodecl.} = uint8
|
||||
## This is the same as the type `unsigned char` in *C*.
|
||||
cushort* {.importc: "unsigned short", nodecl.} = uint16
|
||||
## This is the same as the type `unsigned short` in *C*.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue