Skip to content

Commit

Permalink
Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
flyx committed Sep 18, 2017
1 parent f6f0fb8 commit 435ccb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion text/src/interface/text-pool.ads
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ package Text.Pool is
private
type Reference is new Ada.Finalization.Controlled with record
Data : Pool_Data_Access;
end record with Type_Invariant => Reference.Data.Pos mod Header_Size = 1;
end record with Type_Invariant =>
(Reference.Data = null or else Reference.Data.Pos mod Header_Size = 1);

overriding procedure Adjust (Object : in out Reference);
overriding procedure Finalize (Object : in out Reference);
Expand Down

0 comments on commit 435ccb2

Please sign in to comment.