fixed a bug that the token buffer points to null if an empty string is the first token scanned.

fixed a bug of not getting a correct number of bytes allocated for an object when scanning a new heap
This commit is contained in:
2014-02-07 09:04:46 +00:00
parent 188c64e56f
commit 1c00ec53b1
3 changed files with 31 additions and 8 deletions

View File

@ -230,7 +230,7 @@ package H2.Scheme is
Pointer_Slot: Object_Pointer_Array(1 .. Size) := (others => null);
when Character_Object =>
Character_Slot: Object_Character_Array(1 .. Size) := (others => Object_Character'First);
Character_Terminator: Object_Character := Object_Character'First; -- TODO: can this guarantee termining NULL? require some attribute for it to work?
Character_Terminator: Object_Character := Object_Character'First; -- TODO: can this guarantee terminating NULL? require some attribute for it to work?
when Byte_Object =>
Byte_Slot: Object_Byte_Array(1 .. Size) := (others => 0);
when Word_Object =>