Skip to content

Commit

Permalink
boolean: Fix astNewFIELD()'s check for boolean bitfields
Browse files Browse the repository at this point in the history
The old code still assumed FB_DATATYPE_BITFIELD, where the subtype would
point to a BITFIELD symbol. But this was removed.
  • Loading branch information
dkl committed May 20, 2015
1 parent 4eafc17 commit 344e192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/ast-node-misc.bas
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ function astNewFIELD _

assert( symbIsField( sym ) )
if( symbFieldIsBitfield( sym ) ) then
if( symbGetType( subtype ) = FB_DATATYPE_BOOLEAN ) then
if( typeGetDtAndPtrOnly( dtype ) = FB_DATATYPE_BOOLEAN ) then
'' final type is always a signed int
dtype = typeJoin( dtype, FB_DATATYPE_INTEGER )
else
Expand Down

0 comments on commit 344e192

Please sign in to comment.