Skip to content

Commit

Permalink
Fix bool alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
totalspectrum committed Apr 8, 2024
1 parent 0405c45 commit da4dba4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changelog.txt
Expand Up @@ -3,10 +3,11 @@ Version 6.9.2
- Fixed annoying error spam with bad instructions when -l given
- Fixed a missing type check which caused vfscanf() to fail to compile
- Fixed incorrect conversion of multiplication into shifts in nucode
- Fixed alignment requirements for boolean types

Version 6.9.1
- Fixed initialization of boolean types
- Fixed several bugs around
- Fixed several bugs around booleans
- Reduced storage size required for boolean types (in most cases)

Version 6.9.0
Expand Down
2 changes: 2 additions & 0 deletions expr.c
Expand Up @@ -2330,6 +2330,8 @@ int TypeAlign(AST *typ)
case AST_UNSIGNEDTYPE:
case AST_GENERICTYPE:
case AST_FLOATTYPE:
case AST_UNS_BOOLTYPE:
case AST_SIGNED_BOOLTYPE:
r = EvalConstExpr(typ->left);
if (r <= LONG_SIZE) return r;
return LONG_SIZE;
Expand Down
2 changes: 1 addition & 1 deletion version.h
Expand Up @@ -7,7 +7,7 @@
#define VERSION_MAJOR 6
#define VERSION_MINOR 9
#define VERSION_REV 2
#define BETA "-beta"
//#define BETA "-beta"

#define VERSIONSTR version_string

Expand Down

0 comments on commit da4dba4

Please sign in to comment.