Skip to content

Commit

Permalink
symb.bi check that array has at least room for ... instead of an exac…
Browse files Browse the repository at this point in the history
…t size
  • Loading branch information
jayrm committed Jul 28, 2023
1 parent 043b273 commit 681586a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/symb.bi
Original file line number Diff line number Diff line change
Expand Up @@ -2705,7 +2705,7 @@ declare sub symbDumpChain( byval chain_ as FBSYMCHAIN ptr )
declare sub symbDumpLookup( byval id as zstring ptr )

'' FBARRAY: 6 pointer/integer fields + the dimTB with 3 integer fields per dimension
#define symbDescriptorHasRoomFor( sym, dimensions ) (symbGetLen( sym ) = env.pointersize * (((dimensions) * 3) + 6))
#define symbDescriptorHasRoomFor( sym, dimensions ) (symbGetLen( sym ) >= env.pointersize * (((dimensions) * 3) + 6))
#endif

declare function symbDumpPrettyToStr( byval sym as FBSYMBOL ptr ) as string
Expand Down

0 comments on commit 681586a

Please sign in to comment.