mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 07:21:19 +00:00
make cuchar alias uint8 instead of char (#17738)
This commit is contained in:
@@ -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*.
|
||||
|
||||
Reference in New Issue
Block a user