Skip to content

Commit

Permalink
Change CBool to be 1 byte.
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Dec 28, 2024
1 parent 53bada2 commit 5c7a183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/core/cinterop.c3
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def CUChar = char;

def CChar = $typefrom($$C_CHAR_IS_SIGNED ? ichar.typeid : char.typeid);

enum CBool : CInt
enum CBool : char
{
FALSE,
TRUE
Expand Down
1 change: 1 addition & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
- Use `weak` on dyn-symbols on Linux.
- Fix crash on project.json not having an empty set of targets.
- Miscompile when indexing an array with small unsigned types for enums.
- Change CBool to be 1 byte.

### Stdlib changes
- Increase BitWriter.write_bits limit up to 32 bits.
Expand Down

0 comments on commit 5c7a183

Please sign in to comment.